initialize .img

without the attached patch ./sent example segfaults here
This commit is contained in:
Szabolcs Nagy 2015-11-09 02:58:26 +01:00 committed by Markus Teich
parent 3ce84e7170
commit 4ca44387e6

2
sent.c
View File

@ -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)