aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index 8abeea7..c255221 100644
--- a/src/json.c
+++ b/src/json.c
@@ -3,13 +3,16 @@
struct JsonBuilder {
StrBuilder buf;
- BOOL has_output_element[256];
+ // not supported by ducc for now
+ // BOOL has_output_element[256];
+ BOOL* has_output_element;
int depth;
};
JsonBuilder* jsonbuilder_new() {
JsonBuilder* b = calloc(1, sizeof(JsonBuilder));
strbuilder_init(&b->buf);
+ b->has_output_element = calloc(256, sizeof(BOOL));
return b;
}