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

IvanHu ivan.hu at canonical.com
Fri Jun 1 08:45:11 UTC 2012


On 06/01/2012 04:19 PM, Keng-Yu Lin wrote:
> 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);
Acked-by: Ivan Hu<ivan.hu at canonical.com>




More information about the fwts-devel mailing list