diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2003-04-24 18:51:07 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-04-24 18:51:07 +0000 |
commit | 691a5fd50a39954c862cbe1fcfd6d88e6c40d95a (patch) | |
tree | c4faf69e0a3933a1c9d15653001cac43bf928586 /gdk-pixbuf/gdk-pixbuf-animation.c | |
parent | 89ef7509b18abb967f35c40b210faee83fe08165 (diff) | |
download | gtk+-691a5fd50a39954c862cbe1fcfd6d88e6c40d95a.tar.gz |
Add sanity checks for GError handling. (#108345)
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-animation.c')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-animation.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-animation.c b/gdk-pixbuf/gdk-pixbuf-animation.c index 354cc7740c..0a496bb7ad 100644 --- a/gdk-pixbuf/gdk-pixbuf-animation.c +++ b/gdk-pixbuf/gdk-pixbuf-animation.c @@ -137,6 +137,7 @@ gdk_pixbuf_animation_new_from_file (const char *filename, GdkPixbufModule *image_module; g_return_val_if_fail (filename != NULL, NULL); + g_return_val_if_fail (error == NULL || *error == NULL, NULL); f = fopen (filename, "rb"); if (!f) { |