Fix build warnings

This commit is contained in:
Max Brunsfeld 2016-02-12 14:07:30 -08:00
parent afed91661b
commit 3f08bfb264
7 changed files with 11 additions and 8 deletions

View file

@ -26,7 +26,7 @@ void ts_document_free(TSDocument *self) {
ts_parser_destroy(&self->parser);
if (self->tree)
ts_tree_release(self->tree);
ts_document_set_input(self, (TSInput){});
ts_document_set_input(self, (TSInput){NULL, NULL, NULL, TSInputEncodingUTF8});
ts_free(self);
}