check for bin == NULL

This commit is contained in:
Markus Teich 2015-12-08 22:34:48 +01:00
parent 24762d0172
commit edb4630564

3
sent.c
View File

@ -173,7 +173,8 @@ Image *ffopen(char *filename)
REG_NOSUB | REG_EXTENDED | REG_ICASE))
continue;
if (!regexec(&regex, filename, 0, NULL, 0)) {
bin = filters[i].bin;
if (!(bin = filters[i].bin))
return NULL;
break;
}
}