From cb4d350424f4e70b62c24f6c1a98223b1fc51afe Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 20 Nov 2019 21:20:35 +0200 Subject: [PATCH] Fix unnecessary string copy --- src/nhlua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nhlua.c b/src/nhlua.c index 7898879bb..1347fc3ac 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -119,7 +119,7 @@ const char *name; const char *value; { lua_pushstring(L, name); - lua_pushstring(L, dupstr(value)); + lua_pushstring(L, value); lua_rawset(L, -3); } void