summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf-animation.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2003-04-24 18:51:07 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-04-24 18:51:07 +0000
commit691a5fd50a39954c862cbe1fcfd6d88e6c40d95a (patch)
treec4faf69e0a3933a1c9d15653001cac43bf928586 /gdk-pixbuf/gdk-pixbuf-animation.c
parent89ef7509b18abb967f35c40b210faee83fe08165 (diff)
downloadgdk-pixbuf-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-animation.c b/gdk-pixbuf/gdk-pixbuf-animation.c
index 354cc7740..0a496bb7a 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) {