From 780482b1658f3b70d65f0e8f511aae8cd1cd5d1c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 18 Jun 2008 18:24:00 -0400 Subject: Check that 'pixbuf' key is not nil in l_pm_populate; src/lua_interface.c --- src/lua_interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lua_interface.c b/src/lua_interface.c index 20a28a6e..8706d4e1 100644 --- a/src/lua_interface.c +++ b/src/lua_interface.c @@ -788,7 +788,8 @@ void l_pm_populate(GtkTreeIter *initial_iter) { lua_getfield(lua, -1, "pixbuf"); if (lua_isstring(lua, -1)) gtk_tree_store_set(pm_store, &iter, 0, lua_tostring(lua, -1), -1); - else warn("pm.populate: pixbuf key must have string value."); + else if (!lua_isnil(lua, -1)) + warn("pm.populate: pixbuf key must have string value."); lua_pop(lua, 1); // pixbuf lua_getfield(lua, -1, "text"); gtk_tree_store_set(pm_store, &iter, 2, lua_isstring(lua, -1) ? -- cgit v1.2.3