const char *e;
e = object_path_startswith(node, prefix);
- if (e)
+ if (e && e[0])
fprintf(i->f, " <node name=\"%s\"/>\n", e);
free(node);
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;
}