diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2015-12-08 22:34:48 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2015-12-08 22:34:48 +0100 |
commit | edb46305647d909199a860b6b0812595742f6fe4 (patch) | |
tree | ab17d283c49ccf0e7262926d51a8485473b7101b | |
parent | 24762d01720aaee44334249fa70498a0536ff89e (diff) |
check for bin == NULL
-rw-r--r-- | sent.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -173,7 +173,8 @@ Image *ffopen(char *filename) REG_NOSUB | REG_EXTENDED | REG_ICASE)) continue; if (!regexec(®ex, filename, 0, NULL, 0)) { - bin = filters[i].bin; + if (!(bin = filters[i].bin)) + return NULL; break; } } |