diff options
Diffstat (limited to 'lauxlib.c')
| -rw-r--r-- | lauxlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.c,v 1.122 2004/08/13 19:52:53 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.123 2004/08/30 18:35:14 roberto Exp roberto $ |
| 3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -632,6 +632,7 @@ LUALIB_API int luaL_loadbuffer (lua_State *L, const char *buff, size_t size, | |||
| 632 | 632 | ||
| 633 | static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) { | 633 | static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) { |
| 634 | (void)ud; | 634 | (void)ud; |
| 635 | (void)osize; | ||
| 635 | if (nsize == 0) { | 636 | if (nsize == 0) { |
| 636 | free(ptr); | 637 | free(ptr); |
| 637 | return NULL; | 638 | return NULL; |
