From 06ea37eef0faa41cdcfbb1ee278ff26778ce7fd7 Mon Sep 17 00:00:00 2001 From: monsta Date: Sun, 24 Dec 2017 16:09:20 +0300 Subject: libslab: restore missing variable initialization it got lost after https://github.com/mate-desktop/mate-control-center/commit/9169a1d5d4d5ac5d8a14bc021be09a0a80eb9996 --- libslab/mate-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libslab/mate-utils.c b/libslab/mate-utils.c index 90dd9320..8dafe11a 100644 --- a/libslab/mate-utils.c +++ b/libslab/mate-utils.c @@ -56,7 +56,8 @@ load_image_by_id (GtkImage * image, GtkIconSize size, const gchar * image_id) icon_theme = gtk_icon_theme_get_default (); pixbuf = gtk_icon_theme_load_icon (icon_theme, id, width, 0, NULL); - if (pixbuf != NULL) { + icon_exists = (pixbuf != NULL); + if (icon_exists) { gtk_image_set_from_pixbuf (image, pixbuf); g_object_unref (pixbuf); } -- cgit v1.2.1