diff options
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.114 2003/01/17 15:27:28 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.115 2003/01/29 10:27:07 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -397,7 +397,7 @@ static int pmain (lua_State *l) { | |||
397 | struct Smain *s = (struct Smain *)lua_touserdata(l, 1); | 397 | struct Smain *s = (struct Smain *)lua_touserdata(l, 1); |
398 | int status; | 398 | int status; |
399 | int interactive = 0; | 399 | int interactive = 0; |
400 | if (s->argv[0][0] != '\0') progname = s->argv[0]; | 400 | if (s->argv[0] && s->argv[0][0]) progname = s->argv[0]; |
401 | L = l; | 401 | L = l; |
402 | lua_userinit(l); /* open libraries */ | 402 | lua_userinit(l); /* open libraries */ |
403 | status = handle_luainit(); | 403 | status = handle_luainit(); |