diff options
author | Richard Kinder <rkinder@src.gnome.org> | 2003-03-24 02:31:30 +0000 |
---|---|---|
committer | Richard Kinder <rkinder@src.gnome.org> | 2003-03-24 02:31:30 +0000 |
commit | e5a153df955bd51c2fa2bf78d6f64db0494ea2b0 (patch) | |
tree | b5f7dd98f85fe7d9df927f7ebed5f815b16902ca /demos | |
parent | 758cdc5b18fc275a6f2c7ac70739b2991028fb70 (diff) | |
download | gtk+-e5a153df955bd51c2fa2bf78d6f64db0494ea2b0.tar.gz |
Fix for #108788 - GError set to FALSE rather than NULL.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/testpixbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/testpixbuf.c b/demos/testpixbuf.c index a40d3b202d..4088e344f3 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. */ |