clean the stack when llua_update_window_table is called with a window table not yet...
authorCesare Tirabassi <norsetto@ubuntu.com>
Sun, 26 Jul 2009 11:03:41 +0000 (13:03 +0200)
committerCesare Tirabassi <norsetto@ubuntu.com>
Sun, 26 Jul 2009 11:03:41 +0000 (13:03 +0200)
src/llua.c

index 22ac592..99b1685 100644 (file)
@@ -467,6 +467,7 @@ void llua_update_window_table(int text_start_x, int text_start_y, int text_width
        lua_getglobal(lua_L, "conky_window");
        if (lua_isnil(lua_L, -1)) {
                /* window table isn't populated yet */
+               lua_pop(lua_L, 1);
                return;
        }