Introduction
Introduction Statistics Contact Development Disclaimer Help
check for bin == NULL - sent - simple plaintext presentation tool
git clone git://git.suckless.org/sent
Log
Files
Refs
README
LICENSE
---
commit edb46305647d909199a860b6b0812595742f6fe4
parent 24762d01720aaee44334249fa70498a0536ff89e
Author: Markus Teich <[email protected]>
Date: Tue, 8 Dec 2015 22:34:48 +0100
check for bin == NULL
Diffstat:
M sent.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git 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;
}
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.