Mercurial > pidgin
diff src/applet.c @ 2843:87d11d2a7d59
[gaim-migrate @ 2856]
i think we've found our mole
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 04 Dec 2001 07:53:55 +0000 |
parents | e9e624d8803e |
children | 32c78c57b351 |
line wrap: on
line diff
--- a/src/applet.c Tue Dec 04 05:38:53 2001 +0000 +++ b/src/applet.c Tue Dec 04 07:53:55 2001 +0000 @@ -143,7 +143,7 @@ GdkPixmap *cache; GdkGC *gc; char *path; - GdkPixbuf *pb, *scale; + GdkPixbuf *pb, *scale = NULL; guchar *dst; double affine[6]; @@ -156,7 +156,8 @@ gdk_gc_copy(gc, applet->style->bg_gc[GTK_WIDGET_STATE(applet)]); path = gnome_pixmap_file(name); - scale = gdk_pixbuf_new_from_file(path); + if (path) + scale = gdk_pixbuf_new_from_file(path); g_free(path); if (!scale) return NULL;