summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsangelovic <angelovic.s@gmail.com>2020-01-27 21:40:37 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-01-28 11:20:33 +0100
commit58abbbcc6bcedc4eebd1f5c7733cd41518e1f2e3 (patch)
treed4ac725f81c42ea791d94c701c0b1bf845885397
parentefi: fix build. (diff)
downloadsystemd-58abbbcc6bcedc4eebd1f5c7733cd41518e1f2e3.tar.xz
systemd-58abbbcc6bcedc4eebd1f5c7733cd41518e1f2e3.zip
sd-bus: fix introspection bug in signal parameter names
Diffstat (limited to '')
-rw-r--r--src/libsystemd/sd-bus/bus-introspect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-introspect.c b/src/libsystemd/sd-bus/bus-introspect.c
index beab80687d..e8934489b5 100644
--- a/src/libsystemd/sd-bus/bus-introspect.c
+++ b/src/libsystemd/sd-bus/bus-introspect.c
@@ -160,7 +160,7 @@ int introspect_write_interface(struct introspect *i, const sd_bus_vtable *v) {
case _SD_BUS_VTABLE_SIGNAL:
fprintf(i->f, " <signal name=\"%s\">\n", v->x.signal.member);
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_flags(i, v->type, v->flags);
fputs(" </signal>\n", i->f);