mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +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) {
|
||||
if (ts == NULL)
|
||||
return;
|
||||
makeshared(ts);
|
||||
ts->id = ATOM_DEC(&STRID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user