diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-02-28 22:42:10 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-02-28 22:42:10 +0100 |
commit | b8481a1eb474bd60c9fc0cffbcbf0f8da76c1c9d (patch) | |
tree | af7f3df43062216e145dfb50587a6d0bbbfefa03 | |
parent | 363da064d395925f46be7793ece5800ec66a82ab (diff) |
Check that interface name is provided
-rw-r--r-- | gdbus/object.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdbus/object.c b/gdbus/object.c index 0786aebe..2823054b 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -224,6 +224,9 @@ static struct interface_data *find_interface(GSList *interfaces, { GSList *list; + if (!name) + return NULL; + for (list = interfaces; list; list = list->next) { struct interface_data *iface = list->data; if (!strcmp(name, iface->name)) @@ -391,7 +394,6 @@ static gboolean check_signal(DBusConnection *conn, const char *path, } iface = find_interface(data->interfaces, interface); - if (!iface) { error("dbus_connection_emit_signal: %s does not implement %s", path, interface); |