diff --git a/test/runtime/document_test.cc b/test/runtime/document_test.cc index 7757823c..0fd2e65f 100644 --- a/test/runtime/document_test.cc +++ b/test/runtime/document_test.cc @@ -374,7 +374,7 @@ describe("Document", [&]() { ts_document_set_language(document, load_real_language("json")); ts_document_set_input_string(document, input_string.c_str()); - TSParseOptions options; + TSParseOptions options = {}; options.changed_ranges = nullptr; options.halt_on_error = false; @@ -402,7 +402,7 @@ describe("Document", [&]() { ts_document_set_language(document, load_real_language("json")); ts_document_set_input_string(document, input_string.c_str()); - TSParseOptions options; + TSParseOptions options = {}; options.changed_ranges = nullptr; options.halt_on_error = true; ts_document_parse_with_options(document, options);