forked from AuroraMiddleware/gtk
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:
parent
e45ea70936
commit
b5dff5e417
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user