From e1dbaef587a7f6e09670a7d8173ecfb43405a7ab Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 29 Sep 2011 21:25:44 +0200 Subject: [PATCH] shell: Don't crash when loading the icon fails https://bugzilla.gnome.org/show_bug.cgi?id=660513 --- shell/cc-shell-model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/cc-shell-model.c b/shell/cc-shell-model.c index 736c0a9c4..2dd0e6d05 100644 --- a/shell/cc-shell-model.c +++ b/shell/cc-shell-model.c @@ -34,7 +34,7 @@ load_pixbuf_for_gicon (GIcon *icon) { GtkIconTheme *theme; GtkIconInfo *icon_info; - GdkPixbuf *pixbuf; + GdkPixbuf *pixbuf = NULL; GError *err = NULL; if (icon == NULL)