summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-xml-output.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli-xml-output.c')
-rw-r--r--cli/src/cli-xml-output.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c
index b558a9a843c..9c3d17a7b64 100644
--- a/cli/src/cli-xml-output.c
+++ b/cli/src/cli-xml-output.c
@@ -4526,8 +4526,12 @@ cli_xml_snapshot_info_per_snap (xmlTextWriterPtr writer, xmlDocPtr doc,
ret = xmlTextWriterWriteFormatElement (writer,
(xmlChar *) "description",
"%s", buffer);
- XML_RET_CHECK_AND_GOTO (ret, out);
+ } else {
+ ret = xmlTextWriterWriteFormatElement (writer,
+ (xmlChar *) "description",
+ "%s", "");
}
+ XML_RET_CHECK_AND_GOTO (ret, out);
snprintf (key_buffer, sizeof (key_buffer), "%s.snap-time", keyprefix);