From 0d039f7192dbeb38b6d161e1a38431cdcc5fe7bf Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Thu, 29 Jun 2017 19:33:26 +0300 Subject: [PATCH] parser/libxml2: fix missed {} for multi-line block --- src/parser_libxml2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parser_libxml2.c b/src/parser_libxml2.c index ade7e24..472bebf 100644 --- a/src/parser_libxml2.c +++ b/src/parser_libxml2.c @@ -116,11 +116,12 @@ static void _start_element(void *userdata, if (parser->depth == 0) { /* notify the owner */ - if (parser->startcb) + if (parser->startcb) { cbattrs = _convert_attrs(parser, nattrs, attrs); parser->startcb((char *)name, cbattrs, parser->userdata); _free_cbattrs(parser, cbattrs); + } } else { /* build stanzas at depth 1 */ if (!parser->stanza && parser->depth != 1) {