diff options
-rw-r--r-- | cli/src/cli-xml-output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c index 4f19400a574..419cae20a16 100644 --- a/cli/src/cli-xml-output.c +++ b/cli/src/cli-xml-output.c @@ -45,7 +45,7 @@ cli_begin_xml_output (xmlTextWriterPtr *writer, xmlBufferPtr *buf) int ret = -1; *buf = xmlBufferCreateSize (8192); - if (buf == NULL) { + if (*buf == NULL) { ret = -1; goto out; } |