dbus: fix crash if interface is NULL
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
b6e731b566
commit
1c54d2fd12
2
dbus.c
2
dbus.c
|
@ -315,7 +315,7 @@ a_dbus_process_request(DBusConnection *dbus_connection, DBusMessage *msg)
|
||||||
|
|
||||||
if(dbus_message_get_no_reply(msg))
|
if(dbus_message_get_no_reply(msg))
|
||||||
/* emit signals */
|
/* emit signals */
|
||||||
signal_object_emit(globalconf.L, &dbus_signals, interface, nargs);
|
signal_object_emit(globalconf.L, &dbus_signals, NONULL(interface), nargs);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
signal_t *sig = signal_array_getbyid(&dbus_signals,
|
signal_t *sig = signal_array_getbyid(&dbus_signals,
|
||||||
|
|
Loading…
Reference in New Issue