mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
fix #1078
This commit is contained in:
@@ -64,6 +64,8 @@ int luaS_eqshrstr (TString *a, TString *b) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void luaS_share (TString *ts) {
|
void luaS_share (TString *ts) {
|
||||||
|
if (ts == NULL)
|
||||||
|
return;
|
||||||
makeshared(ts);
|
makeshared(ts);
|
||||||
ts->id = ATOM_DEC(&STRID);
|
ts->id = ATOM_DEC(&STRID);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user