From: Reini Urban Date: Fri, 14 Oct 2016 20:30:42 +0000 (+0200) Subject: Fix yaml_document_delete X-Git-Tag: upstream/0.2.2^2~14 X-Git-Url: http://andersk.mit.edu/gitweb/libyaml.git/commitdiff_plain/31bb2aaa34899b06f5c3666c4c9cbe44117203e5 Fix yaml_document_delete Remove unneeded context, which is not set in any macro. --- diff --git a/src/api.c b/src/api.c index ee170d8..b0afd1f 100644 --- a/src/api.c +++ b/src/api.c @@ -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)) {