Fix unnecessary string copy
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@ const char *name;
|
|||||||
const char *value;
|
const char *value;
|
||||||
{
|
{
|
||||||
lua_pushstring(L, name);
|
lua_pushstring(L, name);
|
||||||
lua_pushstring(L, dupstr(value));
|
lua_pushstring(L, value);
|
||||||
lua_rawset(L, -3);
|
lua_rawset(L, -3);
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user