diff options
author | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2013-11-28 16:56:11 -0300 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2013-11-28 16:56:11 -0300 |
commit | b5dff5e41701a1ad0521b820ef99e33fa2a6f9ff (patch) | |
tree | c7c6eff06fee99265a50a1d88783e362c7dd248b /gtk/gtkiconcache.c | |
parent | e45ea70936ee30344b96ab99c7651fef58ebd4ff (diff) | |
download | gtk+-b5dff5e41701a1ad0521b820ef99e33fa2a6f9ff.tar.gz |
GtkIconCache: find_image_offset() return 0 if icon_name is NULL.
This avoid a crash calling gtk_about_dialog_set_logo_icon_name() with a NULL icon_name.
Diffstat (limited to 'gtk/gtkiconcache.c')
-rw-r--r-- | gtk/gtkiconcache.c | 3 |
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) { |