From: Tobias Ulmer Date: Tue, 12 Nov 2013 14:45:02 +0000 (+0100) Subject: lib is an array, dereferencing it for a pointer is wrong. X-Git-Tag: e2factory-2.3.15rc1~393 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=c6719cd160a34c3e39ace98469dba008b9828257;p=e2factory.git lib is an array, dereferencing it for a pointer is wrong. Signed-off-by: Tobias Ulmer --- diff --git a/generic/le2lib.c b/generic/le2lib.c index 2cd5ea6..5c99f30 100644 --- a/generic/le2lib.c +++ b/generic/le2lib.c @@ -828,7 +828,7 @@ int luaopen_le2lib(lua_State *lua) luaL_Reg *next; lua_newtable(lua); - for (next = &lib; next->name != NULL; next++) { + for (next = lib; next->name != NULL; next++) { lua_pushcfunction(lua, next->func); lua_setfield(lua, -2, next->name); }