Don't dereference context when it may be NULL. (#62344)

* io-xbm.c (gdk_pixbuf__xbm_image_load_real): Don't dereference
        context when it may be NULL. (#62344)
This commit is contained in:
Matthias Clasen
2001-10-18 20:12:24 +00:00
parent 1ca09bab96
commit b7b2a5ca64
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-10-18 Matthias Clasen <matthiasc@poet.de>
* io-xbm.c (gdk_pixbuf__xbm_image_load_real): Don't dereference
context when it may be NULL. (#62344)
2001-10-16 Matthias Clasen <matthiasc@poet.de>
* gdk-pixdata.c, gdk-pixdata.h: Documentation.

View File

@ -281,8 +281,7 @@ gdk_pixbuf__xbm_image_load_real (FILE *f, XBMData *context, GError **error)
g_set_error (error,
GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
_("Invalid XBM file: %s"),
context->tempname);
_("Invalid XBM file"));
return NULL;
}