pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version bump
[smdp.git]
/
src
/
markdown.c
diff --git
a/src/markdown.c
b/src/markdown.c
index
8471724
..
c03d307
100644
(file)
--- a/
src/markdown.c
+++ b/
src/markdown.c
@@
-1,6
+1,6
@@
/*
* An implementation of markdown objects.
/*
* An implementation of markdown objects.
- * Copyright (C) 201
4
Michael Goehler
+ * Copyright (C) 201
8
Michael Goehler
*
* This file is part of mdp.
*
*
* This file is part of mdp.
*
@@
-43,7
+43,7
@@
slide_t *new_slide() {
slide_t *x = malloc(sizeof(slide_t));
x->line = NULL;
x->prev = x->next = NULL;
slide_t *x = malloc(sizeof(slide_t));
x->line = NULL;
x->prev = x->next = NULL;
- x->lines = 0;
+ x->lines =
x->stop =
0;
return x;
}
return x;
}
@@
-81,8
+81,6
@@
void free_deck(deck_t *deck) {
while (slide) {
free_line(slide->line);
next = slide->next;
while (slide) {
free_line(slide->line);
next = slide->next;
- if (slide == NULL)
- return;
free(slide);
slide = next;
}
free(slide);
slide = next;
}