summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2015-12-08 22:34:48 +0100
committerMarkus Teich <markus.teich@stusta.mhn.de>2015-12-08 22:34:48 +0100
commitedb46305647d909199a860b6b0812595742f6fe4 (patch)
treeab17d283c49ccf0e7262926d51a8485473b7101b
parent24762d01720aaee44334249fa70498a0536ff89e (diff)
check for bin == NULL
-rw-r--r--sent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sent.c b/sent.c
index 5f3cb59..5c72597 100644
--- a/sent.c
+++ b/sent.c
@@ -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;
}
}