diff options
author | Reini Urban <rurban@cpanel.net> | 2016-10-14 22:30:42 +0200 |
---|---|---|
committer | Ingy döt Net <ingy@ingy.net> | 2018-06-30 14:47:34 -0700 |
commit | 31bb2aaa34899b06f5c3666c4c9cbe44117203e5 (patch) | |
tree | 31cb7ce798cded5ef5bf8dcb992396e40080d786 | |
parent | 1049e0406786329f9cdb347ad44dc637112ca6a4 (diff) | |
download | libyaml-git-31bb2aaa34899b06f5c3666c4c9cbe44117203e5.tar.gz |
Fix yaml_document_delete
Remove unneeded context, which is not set in any macro.
-rw-r--r-- | src/api.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1117,13 +1117,8 @@ error: YAML_DECLARE(void) yaml_document_delete(yaml_document_t *document) { - struct { - yaml_error_type_t error; - } context; yaml_tag_directive_t *tag_directive; - context.error = YAML_NO_ERROR; /* Eliminate a compliler warning. */ - assert(document); /* Non-NULL document object is expected. */ while (!STACK_EMPTY(&context, document->nodes)) { |