summaryrefslogtreecommitdiff
path: root/demos/testpixbuf.c
diff options
context:
space:
mode:
authorRichard Kinder <rkinder@src.gnome.org>2003-03-24 02:31:30 +0000
committerRichard Kinder <rkinder@src.gnome.org>2003-03-24 02:31:30 +0000
commite5a153df955bd51c2fa2bf78d6f64db0494ea2b0 (patch)
treeb5f7dd98f85fe7d9df927f7ebed5f815b16902ca /demos/testpixbuf.c
parent758cdc5b18fc275a6f2c7ac70739b2991028fb70 (diff)
downloadgdk-pixbuf-e5a153df955bd51c2fa2bf78d6f64db0494ea2b0.tar.gz
Fix for #108788 - GError set to FALSE rather than NULL.
Diffstat (limited to 'demos/testpixbuf.c')
-rw-r--r--demos/testpixbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/testpixbuf.c b/demos/testpixbuf.c
index a40d3b202..4088e344f 100644
--- a/demos/testpixbuf.c
+++ b/demos/testpixbuf.c
@@ -439,7 +439,8 @@ update_timeout (gpointer data)
GError *error;
done = FALSE;
- error = FALSE;
+ error = NULL;
+
if (!feof (status->imagefile)) {
gint nbytes;
@@ -447,7 +448,6 @@ update_timeout (gpointer data)
status->imagefile);
- error = NULL;
if (!gdk_pixbuf_loader_write (GDK_PIXBUF_LOADER (status->loader), status->buf, nbytes, &error)) {
g_warning ("Error writing to loader: %s",
error->message);
@@ -458,7 +458,7 @@ update_timeout (gpointer data)
}
else
- done = TRUE;
+ done = TRUE;
if (done) {
/* ignoring errors, we should not do that. */