diff options
Diffstat (limited to 'src/lua5/imlua_file.c')
-rw-r--r-- | src/lua5/imlua_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua5/imlua_file.c b/src/lua5/imlua_file.c index 066dd76..ac546b0 100644 --- a/src/lua5/imlua_file.c +++ b/src/lua5/imlua_file.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_file.c,v 1.2 2009/08/04 21:35:26 scuri Exp $ + * $Id: imlua_file.c,v 1.3 2010/07/18 03:04:23 scuri Exp $ */ #include <string.h> @@ -467,7 +467,7 @@ static int imluaFileGetAttributeList (lua_State *L) imFileGetAttributeList(ifile, attrib, &attrib_count); - lua_newtable(L); + lua_createtable(L, attrib_count, 0); for (i = 0; i < attrib_count; i++) { lua_pushstring(L, attrib[i]); |