diff options
author | Björn Lindqvist <bjourne@gmail.com> | 2008-03-23 18:27:03 +0000 |
---|---|---|
committer | Björn Lindqvist <bjornl@src.gnome.org> | 2008-03-23 18:27:03 +0000 |
commit | 2a6f2d07193ee8b4a083cf30a05a5428ca122173 (patch) | |
tree | d0d1565c1ccefe8125fd66e158b98d25ab0f475d /gdk-pixbuf | |
parent | 403315efbb940e5b088fecd1bfc19342023f2544 (diff) | |
download | gdk-pixbuf-2a6f2d07193ee8b4a083cf30a05a5428ca122173.tar.gz |
Guard against NULL pointer. (#467051, Gian Mario Tagliaretti)
2008-03-23 Björn Lindqvist <bjourne@gmail.com>
* gdk-pixbuf/gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): Guard
against NULL pointer. (#467051, Gian Mario Tagliaretti)
svn path=/trunk/; revision=19929
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index 9214ce4cd..5a6f59850 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -1497,6 +1497,8 @@ gdk_pixbuf_new_from_xpm_data (const char **data) GdkPixbufModule *xpm_module; gboolean locked; + g_return_val_if_fail (data != NULL, NULL); + xpm_module = _gdk_pixbuf_get_named_module ("xpm", &error); if (xpm_module == NULL) { g_warning ("Error loading XPM image loader: %s", error->message); |