sent-font

sent: font engine test
git clone git://git.codemadness.org/sent-font
Log | Files | Refs | LICENSE

commit edb46305647d909199a860b6b0812595742f6fe4
parent 24762d01720aaee44334249fa70498a0536ff89e
Author: Markus Teich <markus.teich@stusta.mhn.de>
Date:   Tue,  8 Dec 2015 22:34:48 +0100

check for bin == NULL

Diffstat:
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; } }