summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-02-28 22:42:10 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-02-28 22:42:10 +0100
commitb8481a1eb474bd60c9fc0cffbcbf0f8da76c1c9d (patch)
treeaf7f3df43062216e145dfb50587a6d0bbbfefa03
parent363da064d395925f46be7793ece5800ec66a82ab (diff)
Check that interface name is provided
-rw-r--r--gdbus/object.c4
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);