]> granicus.if.org Git - nethack/commitdiff
Fix unnecessary string copy
authorPasi Kallinen <paxed@alt.org>
Wed, 20 Nov 2019 19:20:35 +0000 (21:20 +0200)
committerPasi Kallinen <paxed@alt.org>
Wed, 20 Nov 2019 19:20:35 +0000 (21:20 +0200)
src/nhlua.c

index 7898879bba087c976c3565a01336413498f4f45f..1347fc3acfab97221362b8b12c4ce5b921b0cb30 100644 (file)
@@ -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