chiark / gitweb /
bus: fix generate introspection XML
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Oct 2013 03:59:21 +0000 (05:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 Oct 2013 04:15:01 +0000 (06:15 +0200)
src/libsystemd-bus/bus-introspect.c

index 3178878..92deb75 100644 (file)
@@ -103,9 +103,9 @@ static int introspect_write_arguments(struct introspect *i, const char *signatur
                 fprintf(i->f, "   <arg type=\"%.*s\"", (int) l, signature);
 
                 if (direction)
-                        fprintf(i->f, " direction=\"%s\">\n", direction);
+                        fprintf(i->f, " direction=\"%s\"/>\n", direction);
                 else
-                        fputs(">\n", i->f);
+                        fputs("/>\n", i->f);
 
                 signature += l;
         }