summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-02-07 12:03:00 +0000
committerPhilip Withnall <withnall@endlessm.com>2017-02-07 12:03:00 +0000
commit01f7543909dabff124ae2d4314a1c36f4307989a (patch)
tree818180353363d8a089241da72b639ae613a7d17a /gdk-pixbuf
parent2634506c2f3897fc83dd3049210fffa5edccf3eb (diff)
downloadgdk-pixbuf-01f7543909dabff124ae2d4314a1c36f4307989a.tar.gz
gdk-pixbuf-loader: Fix up previous commit 2634506c
The assertion needs to be the target of an implication (count > 0), as it could legitimately be false if (count == 0). https://bugzilla.gnome.org/show_bug.cgi?id=776990
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/gdk-pixbuf-loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c
index 9f0fa79c6..89f46a3e0 100644
--- a/gdk-pixbuf/gdk-pixbuf-loader.c
+++ b/gdk-pixbuf/gdk-pixbuf-loader.c
@@ -517,7 +517,7 @@ gdk_pixbuf_loader_write (GdkPixbufLoader *loader,
}
/* By this point, we expect the image_module to have been loaded. */
- g_assert (priv->image_module != NULL);
+ g_assert (count == 0 || priv->image_module != NULL);
if (count > 0 && priv->image_module->load_increment != NULL)
{