aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/storycode.y
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-04-06 22:46:16 +0200
committerThomas White <taw@bitwiz.me.uk>2019-04-06 22:46:16 +0200
commit42b06297f2e311057c1dea19d5c14cc44e126da6 (patch)
tree03f3336240dba93bd76ad7ea42453e40ee2a3f92 /libstorycode/storycode.y
parentcb559aa47b65cb02a59ef972b2cda938b35db138 (diff)
Parsing fixes
Diffstat (limited to 'libstorycode/storycode.y')
-rw-r--r--libstorycode/storycode.y4
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);
}
%{