aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/storycode.y
diff options
context:
space:
mode:
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);
}
%{