summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}
Software created with 💖