diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-01-05 15:16:15 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-01-05 15:16:15 +1100 |
commit | 9bc12f5f97f6774e6eeeb3ef577e026cc8d03357 (patch) | |
tree | 7b2909e6869cf1dff081e114e9693c8736b1480e /source/extern/lua/ldump.c | |
parent | 41f0b9001f60c59691ec04d937e6a9ef424794f1 (diff) |
Lua 5.3.6
Diffstat (limited to 'source/extern/lua/ldump.c')
-rw-r--r-- | source/extern/lua/ldump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/extern/lua/ldump.c b/source/extern/lua/ldump.c index 4c04812..f025aca 100644 --- a/source/extern/lua/ldump.c +++ b/source/extern/lua/ldump.c @@ -1,5 +1,5 @@ /* -** $Id: ldump.c,v 2.36 2015/03/30 15:43:51 roberto Exp $ +** $Id: ldump.c,v 2.37.1.1 2017/04/19 17:20:42 roberto Exp $ ** save precompiled Lua chunks ** See Copyright Notice in lua.h */ @@ -38,7 +38,7 @@ typedef struct { static void DumpBlock (const void *b, size_t size, DumpState *D) { - if (D->status == 0) { + if (D->status == 0 && size > 0) { lua_unlock(D->L); D->status = (*D->writer)(D->L, b, size, D->data); lua_lock(D->L); |