1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00

sd-bus: fix introspection bug in signal parameter names

This commit is contained in:
sangelovic 2020-01-27 21:40:37 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 8bdda551da
commit 58abbbcc6b

View File

@ -160,7 +160,7 @@ int introspect_write_interface(struct introspect *i, const sd_bus_vtable *v) {
case _SD_BUS_VTABLE_SIGNAL: case _SD_BUS_VTABLE_SIGNAL:
fprintf(i->f, " <signal name=\"%s\">\n", v->x.signal.member); fprintf(i->f, " <signal name=\"%s\">\n", v->x.signal.member);
if (bus_vtable_has_names(vtable)) if (bus_vtable_has_names(vtable))
names = strempty(v->x.method.names); names = strempty(v->x.signal.names);
introspect_write_arguments(i, strempty(v->x.signal.signature), &names, NULL); introspect_write_arguments(i, strempty(v->x.signal.signature), &names, NULL);
introspect_write_flags(i, v->type, v->flags); introspect_write_flags(i, v->type, v->flags);
fputs(" </signal>\n", i->f); fputs(" </signal>\n", i->f);