Fix segfault when opening input/queue/id:000007,src:000000,op:flip1,pos:51 with feh

This commit is contained in:
Fabian Keil 2014-12-03 13:00:15 +01:00 committed by Carsten Haitzler (Rasterman)
parent 2c6a3af9b6
commit 1f9b0b3272
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,10 @@ load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity,
{
UNSET_FLAG(im->flags, F_HAS_ALPHA);
}
if (!rows)
{
goto quit2;
}
/* set the format string member to the lower-case full extension */
/* name for the format - so example names would be: */