From: Szabolcs Nagy Date: Mon, 9 Nov 2015 01:58:26 +0000 (+0100) Subject: initialize .img X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=4ca44387e65a96a93b56ed1491f5f90c5e25d948;p=sent.git initialize .img without the attached patch ./sent example segfaults here --- diff --git a/sent.c b/sent.c index 1b3b8f2..fb0b56e 100644 --- a/sent.c +++ b/sent.c @@ -394,6 +394,8 @@ void load(FILE *fp) die("cannot strdup %u bytes:", strlen(buf)+1); if (slides[i].text[0] == '@') slides[i].img = pngopen(slides[i].text + 1); + else + slides[i].img = 0; i++; } if (slides)