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 31788782edee19888cf0c8b01f20237f2db0cf1c..92deb75dfdcb747ff16c4bcf363226a1c34bf4c9 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;
         }