diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-04-06 22:46:16 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-04-06 22:46:16 +0200 |
commit | 42b06297f2e311057c1dea19d5c14cc44e126da6 (patch) | |
tree | 03f3336240dba93bd76ad7ea42453e40ee2a3f92 /libstorycode/storycode.y | |
parent | cb559aa47b65cb02a59ef972b2cda938b35db138 (diff) |
Parsing fixes
Diffstat (limited to 'libstorycode/storycode.y')
-rw-r--r-- | libstorycode/storycode.y | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libstorycode/storycode.y b/libstorycode/storycode.y index d2508e2..4e3c6d0 100644 --- a/libstorycode/storycode.y +++ b/libstorycode/storycode.y @@ -106,12 +106,10 @@ ctx->ss = stylesheet_new(); ctx->s = slide_new(); - ctx->n_str = 0; ctx->max_str = 32; ctx->str = malloc(ctx->max_str*sizeof(char *)); if ( ctx->str == NULL ) ctx->max_str = 0; - - ctx->mask = 0; + str_reset(ctx); } %{ |