Skip to content

Commit 87f57bc

Browse files
committed
SrsContextId assignment can be improved without create a duplicated one.
1 parent dcd02fe commit 87f57bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trunk/src/protocol/srs_protocol_log.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SrsThreadContext::~SrsThreadContext()
3333

3434
SrsContextId SrsThreadContext::generate_id()
3535
{
36-
SrsContextId cid = SrsContextId();
36+
SrsContextId cid;
3737
return cid.set_value(srs_random_str(8));
3838
}
3939

0 commit comments

Comments
 (0)