[PATCH] lib: fwts_log_xml: wrap up the unclosed tags

Keng-Yu Lin kengyu at canonical.com
Fri Jun 1 08:19:57 UTC 2012


wrapping up all the remaining unclosed tags in fwts_log_close_xml().

Signed-off-by: Keng-Yu Lin <kengyu at canonical.com>
---
 src/lib/src/fwts_log_xml.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/src/fwts_log_xml.c b/src/lib/src/fwts_log_xml.c
index 57b530b..0d738e4 100644
--- a/src/lib/src/fwts_log_xml.c
+++ b/src/lib/src/fwts_log_xml.c
@@ -169,7 +169,8 @@ static void fwts_log_open_xml(fwts_log *log)
 
 static void fwts_log_close_xml(fwts_log *log)
 {
-	fwts_log_section_end_xml(log);
+	while (xml_stack_index)
+		fwts_log_section_end_xml(log);
 
 	fwrite("\n", 1, 1, log->fp);
 	fflush(log->fp);
-- 
1.7.9.5





More information about the fwts-devel mailing list