--- gdbus/object.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/gdbus/object.c b/gdbus/object.c index 0786aeb..dde654b 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -224,6 +224,9 @@ static struct interface_data *find_interface(GSList *interfaces, { GSList *list; + if (NULL == name) + return NULL; + for (list = interfaces; list; list = list->next) { struct interface_data *iface = list->data; if (!strcmp(name, iface->name)) -- 1.5.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html