summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-12-24 16:09:20 +0300
committermonsta <[email protected]>2017-12-24 16:12:24 +0300
commitb8c56c2983824a337c38fecf6f58a394a1f6b01b (patch)
tree9656b00b765fe4af5aa37bebf69c29115623f109
parent70b347c44a3dfb2a794b1e2512f295dd863d6aee (diff)
downloadmate-control-center-b8c56c2983824a337c38fecf6f58a394a1f6b01b.tar.bz2
mate-control-center-b8c56c2983824a337c38fecf6f58a394a1f6b01b.tar.xz
libslab: restore missing variable initialization
it got lost after https://github.com/mate-desktop/mate-control-center/commit/457e9331e9d4fb082455ce505c3d3f4bfda9bc38
-rw-r--r--libslab/mate-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libslab/mate-utils.c b/libslab/mate-utils.c
index c3de6a83..5987bde1 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);
}