sorted some includes + added version number
[smdp.git] / markdown.c
index aaa1554..762df34 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#include "include/cstring.h"
 #include "include/markdown.h"
 
 line_t *new_line() {
@@ -23,6 +22,7 @@ slide_t *new_slide() {
     slide_t *x = malloc(sizeof(slide_t));
     x->line = (void*)0;
     x->prev = x->next = (void*)0;
+    x->lines = 0;
     return x;
 }
 
@@ -37,6 +37,7 @@ deck_t *new_deck() {
     deck_t *x = malloc(sizeof(deck_t));
     x->header = (void*)0;
     x->slide = (void*)0;
+    x->slides = x->headers = 0;
     return x;
 }