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.
This commit is contained in:
Juan Pablo Ugarte 2013-11-28 16:56:11 -03:00
parent e45ea70936
commit b5dff5e417

View File

@ -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)
{