summaryrefslogtreecommitdiff
path: root/src/luac/luac.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/luac/luac.c')
-rw-r--r--src/luac/luac.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luac/luac.c b/src/luac/luac.c
index 9ea23342..1aff0bd9 100644
--- a/src/luac/luac.c
+++ b/src/luac/luac.c
@@ -1,5 +1,5 @@
/*
-** $Id: luac.c,v 1.44 2003/04/07 20:34:20 lhf Exp $
+** $Id: luac.c,v 1.44a 2003/04/07 20:34:20 lhf Exp $
** Lua compiler (saves bytecodes to files; also list bytecodes)
** See Copyright Notice in lua.h
*/
@@ -182,7 +182,9 @@ int main(int argc, char* argv[])
FILE* D=fopen(output,"wb");
if (D==NULL) cannot(output,"open","out");
if (stripping) strip(L,f);
+ lua_lock(L);
luaU_dump(L,f,writer,D);
+ lua_unlock(L);
if (ferror(D)) cannot(output,"write","out");
fclose(D);
}