]> git.e2factory.org Git - e2factory.git/commitdiff
lib is an array, dereferencing it for a pointer is wrong.
authorTobias Ulmer <tu@emlix.com>
Tue, 12 Nov 2013 14:45:02 +0000 (15:45 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/le2lib.c

index 2cd5ea677306db84117524ef56b3549995ec4c75..5c99f3018dcef2e3eac434ac53fcb89c03f44c5e 100644 (file)
@@ -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);
        }