pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a77ead
)
fix header-only file crash, fixes #67
author
Jodie Cunningham
<jodie.cunningham@gmail.com>
Fri, 26 Dec 2014 16:07:21 +0000
(10:07 -0600)
committer
Jodie Cunningham
<jodie.cunningham@gmail.com>
Fri, 26 Dec 2014 16:07:21 +0000
(10:07 -0600)
src/markdown.c
patch
|
blob
|
history
diff --git
a/src/markdown.c
b/src/markdown.c
index
05c77be
..
8471724
100644
(file)
--- a/
src/markdown.c
+++ b/
src/markdown.c
@@
-81,6
+81,8
@@
void free_deck(deck_t *deck) {
while (slide) {
free_line(slide->line);
next = slide->next;
+ if (slide == NULL)
+ return;
free(slide);
slide = next;
}