projects
/
sent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ce84e7
)
initialize .img
author
Szabolcs Nagy
<nsz@port70.net>
Mon, 9 Nov 2015 01:58:26 +0000
(
02:58
+0100)
committer
Markus Teich
<markus.teich@stusta.mhn.de>
Tue, 10 Nov 2015 15:55:22 +0000
(16:55 +0100)
without the attached patch ./sent example segfaults here
sent.c
patch
|
blob
|
history
diff --git
a/sent.c
b/sent.c
index 1b3b8f27be43217dcb7ba437d19460a8b8928117..fb0b56efb45547dea6e1ad6176658139dab38df4 100644
(file)
--- 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)