diff options
| author | Mike Pall <mike> | 2020-06-07 14:35:18 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2020-06-07 14:35:18 +0200 |
| commit | 8b55054473452963f24b01efb7c4cc72497c74ec (patch) | |
| tree | 37713ffd7acc4c6b31285b6feccbeb8fef7cee02 /src | |
| parent | 1a4ff1311740aa6c85f7a9101b6aa9bfaafa3f8e (diff) | |
| parent | f5b0fff5a990004375ad43aa6e6c4a11a8b6eb7e (diff) | |
| download | luajit-8b55054473452963f24b01efb7c4cc72497c74ec.tar.gz luajit-8b55054473452963f24b01efb7c4cc72497c74ec.tar.bz2 luajit-8b55054473452963f24b01efb7c4cc72497c74ec.zip | |
Merge branch 'master' into v2.1
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib_debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib_debug.c b/src/lib_debug.c index 5bcabe7d..6737c462 100644 --- a/src/lib_debug.c +++ b/src/lib_debug.c | |||
| @@ -369,7 +369,8 @@ LJLIB_CF(debug_debug) | |||
| 369 | return 0; | 369 | return 0; |
| 370 | if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") || | 370 | if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") || |
| 371 | lua_pcall(L, 0, 0, 0)) { | 371 | lua_pcall(L, 0, 0, 0)) { |
| 372 | fputs(lua_tostring(L, -1), stderr); | 372 | const char *s = lua_tostring(L, -1); |
| 373 | fputs(s ? s : "(error object is not a string)", stderr); | ||
| 373 | fputs("\n", stderr); | 374 | fputs("\n", stderr); |
| 374 | } | 375 | } |
| 375 | lua_settop(L, 0); /* remove eventual returns */ | 376 | lua_settop(L, 0); /* remove eventual returns */ |
