dbus: fix crash if interface is NULL

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-10-05 14:42:38 +02:00
parent b6e731b566
commit 1c54d2fd12
1 changed files with 1 additions and 1 deletions

2
dbus.c
View File

@ -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,