summaryrefslogtreecommitdiffstats
path: root/src/qjson.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qjson.cpp')
-rw-r--r--src/qjson.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qjson.cpp b/src/qjson.cpp
index 6d1aa70..fb31187 100644
--- a/src/qjson.cpp
+++ b/src/qjson.cpp
@@ -65,6 +65,8 @@ void Data::compact()
int size = sizeof(Base) + reserve + base->length*sizeof(offset);
int alloc = sizeof(Header) + size;
Header *h = (Header *) malloc(alloc);
+ h->tag = QBJS_Tag;
+ h->version = 1;
Base *b = h->root();
b->size = size;
b->is_object = header->root()->is_object;