summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkiconcache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkiconcache.c b/gtk/gtkiconcache.c
index 09aaa1b44e..4eaff97b65 100644
--- a/gtk/gtkiconcache.c
+++ b/gtk/gtkiconcache.c
@@ -235,6 +235,9 @@ find_image_offset (GtkIconCache *cache,
guint32 image_list_offset, n_images;
int i;
+ if (!icon_name)
+ return 0;
+
chain_offset = cache->last_chain_offset;
if (chain_offset)
{