fix dav_print_node

Mon, 22 Apr 2019 14:02:34 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 22 Apr 2019 14:02:34 +0200
changeset 588
0cfe006fcad2
parent 587
3c917df041b8
child 589
2514559a6367

fix dav_print_node

tags with namespace def were closed twice

libidav/xml.c file | annotate | diff | comparison | revisions
--- a/libidav/xml.c	Mon Apr 22 12:54:31 2019 +0200
+++ b/libidav/xml.c	Mon Apr 22 14:02:34 2019 +0200
@@ -175,12 +175,11 @@
                     ucx_fprintf(
                             stream,
                             writef,
-                            "<%s:%s xmlns:%s=\"%s\"%s",
+                            "<%s:%s xmlns:%s=\"%s\"",
                             prefix,
                             node->name,
                             prefix,
-                            node->namespace,
-                            tagend);
+                            node->namespace);
                 } else {
                     ucx_fprintf(stream, writef, "<%s:%s", prefix, node->name);
                 }

mercurial