summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-08-26 01:34:13 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2010-08-26 01:34:13 +0000
commitf2638e50f304540ecb8b1cedc4c2855876b28346 (patch)
tree9a0feed09f58f60e654321d744cca16744fd4545
parent2959caf18cabfa4eb62aa6baae1f3a2a5b60d5a8 (diff)
Revert and re-apply badnull patch
Revert previous patch generated by badnull.cocci script, and apply the new one. The main difference is that assert and assert-like functions are not touched anymore. SVN revision: 51650
-rw-r--r--src/icon_chooser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/icon_chooser.c b/src/icon_chooser.c
index 7e50cf2..38cd1de 100644
--- a/src/icon_chooser.c
+++ b/src/icon_chooser.c
@@ -325,7 +325,7 @@ void update_preview_cb (GtkFileChooser *file_chooser, gpointer data)
325 height = 1; 325 height = 1;
326 326
327 pixbuf = gdk_pixbuf_new_from_file_at_size (filename, width, height, NULL); 327 pixbuf = gdk_pixbuf_new_from_file_at_size (filename, width, height, NULL);
328 have_preview = (pixbuf); 328 have_preview = !!pixbuf;
329 g_free (filename); 329 g_free (filename);
330 330
331 gtk_image_set_from_pixbuf (GTK_IMAGE (preview), pixbuf); 331 gtk_image_set_from_pixbuf (GTK_IMAGE (preview), pixbuf);