X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=markdown.c;h=762df3424b7ac527d3d641d3f6b6fd4cdfab619f;hb=b416f18295f7edcb5474396a6b26a59fd5ddb1f5;hp=aaa155478879fe413bd33b498203f4678d99f068;hpb=9dec35aae55c1d122523458b0c92ec1eea16fbdc;p=smdp.git diff --git a/markdown.c b/markdown.c index aaa1554..762df34 100644 --- a/markdown.c +++ b/markdown.c @@ -1,7 +1,6 @@ #include #include -#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; }