Really save func name -- may be lost during merge.
authorRui Guo <firemeteor.guo@gmail.com>
Mon, 15 Jun 2009 14:25:34 +0000 (15 22:25 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Mon, 15 Jun 2009 14:25:34 +0000 (15 22:25 +0800)
src/lua.c

index 5b5cf8d..72f7840 100644 (file)
--- a/src/lua.c
+++ b/src/lua.c
@@ -116,7 +116,7 @@ LuaAllocHandler(const char *name, int ref)
   if (name)
     {
       lh->type = LUA_HANDLER_TYPE_N;
-      lh->u.name = name;
+      lh->u.name = SaveStr(name);
     }
   else
     {