summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Keil <fk@fabiankeil.de>2014-12-03 13:00:15 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-12-06 13:54:11 +0900
commit1f9b0b32728803a1578e658cd0955df773e34f49 (patch)
tree48469ea1fa437f0f46b5ee910304d2869b8adfc8
parent2c6a3af9b6595dcaa7151dd27caa5303a5d152c2 (diff)
Fix segfault when opening input/queue/id:000007,src:000000,op:flip1,pos:51 with feh
-rw-r--r--src/modules/loaders/loader_gif.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/loaders/loader_gif.c b/src/modules/loaders/loader_gif.c
index c6356ca..23dfcca 100644
--- a/src/modules/loaders/loader_gif.c
+++ b/src/modules/loaders/loader_gif.c
@@ -132,6 +132,10 @@ load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity,
132 { 132 {
133 UNSET_FLAG(im->flags, F_HAS_ALPHA); 133 UNSET_FLAG(im->flags, F_HAS_ALPHA);
134 } 134 }
135 if (!rows)
136 {
137 goto quit2;
138 }
135 139
136 /* set the format string member to the lower-case full extension */ 140 /* set the format string member to the lower-case full extension */
137 /* name for the format - so example names would be: */ 141 /* name for the format - so example names would be: */