]> git.ipfire.org Git - thirdparty/git.git/blobdiff - json-writer.h
refs: unify parse_worktree_ref() and ref_type()
[thirdparty/git.git] / json-writer.h
index 83906b09c173894111383b3fc3a0ec7e398373c7..209355e0f12ce296c120b5e5b9f1651a2daf311f 100644 (file)
@@ -64,7 +64,10 @@ struct json_writer
        unsigned int pretty:1;
 };
 
-#define JSON_WRITER_INIT { STRBUF_INIT, STRBUF_INIT, 0, 0 }
+#define JSON_WRITER_INIT { \
+       .json = STRBUF_INIT, \
+       .open_stack = STRBUF_INIT, \
+}
 
 void jw_init(struct json_writer *jw);
 void jw_release(struct json_writer *jw);