diff options
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -95,6 +95,7 @@ xrealloc(ptr, size) ArgError("negative re-allocation size"); } if (!ptr) return xmalloc(size); + if (size == 0) size = 1; malloc_memories += size; mem = realloc(ptr, size); if (!mem) { |