diff options
Diffstat (limited to 'lbuiltin.c')
| -rw-r--r-- | lbuiltin.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbuiltin.c,v 1.54 1999/02/23 14:57:28 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.55 1999/03/01 20:22:16 roberto Exp roberto $ |
| 3 | ** Built-in functions | 3 | ** Built-in functions |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -250,7 +250,7 @@ static void luaB_dostring (void) { | |||
| 250 | char *s = luaL_check_lstr(1, &l); | 250 | char *s = luaL_check_lstr(1, &l); |
| 251 | if (*s == ID_CHUNK) | 251 | if (*s == ID_CHUNK) |
| 252 | lua_error("`dostring' cannot run pre-compiled code"); | 252 | lua_error("`dostring' cannot run pre-compiled code"); |
| 253 | if (lua_dobuffer(s, l, luaL_opt_string(2, NULL)) == 0) | 253 | if (lua_dobuffer(s, l, luaL_opt_string(2, s)) == 0) |
| 254 | if (luaA_passresults() == 0) | 254 | if (luaA_passresults() == 0) |
| 255 | lua_pushuserdata(NULL); /* at least one result to signal no errors */ | 255 | lua_pushuserdata(NULL); /* at least one result to signal no errors */ |
| 256 | } | 256 | } |
