X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=markdown.c;h=9c358d4d342311100c8b8ae0e7dcae3c6aac9a72;hb=ea429fb3f31aaee9f8b931b56b4488c70b2b7549;hp=aaa155478879fe413bd33b498203f4678d99f068;hpb=9dec35aae55c1d122523458b0c92ec1eea16fbdc;p=smdp.git diff --git a/markdown.c b/markdown.c index aaa1554..9c358d4 100644 --- a/markdown.c +++ b/markdown.c @@ -23,6 +23,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 +38,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; }