dbus: field can be nil
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a955519a7a
commit
ab66ce8bec
6
dbus.c
6
dbus.c
|
@ -289,15 +289,15 @@ a_dbus_process_request(DBusConnection *dbus_connection, DBusMessage *msg)
|
||||||
|
|
||||||
lua_setfield(globalconf.L, -2, "type");
|
lua_setfield(globalconf.L, -2, "type");
|
||||||
|
|
||||||
lua_pushstring(globalconf.L, NONULL(interface));
|
lua_pushstring(globalconf.L, interface);
|
||||||
lua_setfield(globalconf.L, -2, "interface");
|
lua_setfield(globalconf.L, -2, "interface");
|
||||||
|
|
||||||
const char *s = dbus_message_get_path(msg);
|
const char *s = dbus_message_get_path(msg);
|
||||||
lua_pushstring(globalconf.L, NONULL(s));
|
lua_pushstring(globalconf.L, s);
|
||||||
lua_setfield(globalconf.L, -2, "path");
|
lua_setfield(globalconf.L, -2, "path");
|
||||||
|
|
||||||
s = dbus_message_get_member(msg);
|
s = dbus_message_get_member(msg);
|
||||||
lua_pushstring(globalconf.L, NONULL(s));
|
lua_pushstring(globalconf.L, s);
|
||||||
lua_setfield(globalconf.L, -2, "member");
|
lua_setfield(globalconf.L, -2, "member");
|
||||||
|
|
||||||
if(dbus_connection == dbus_connection_system)
|
if(dbus_connection == dbus_connection_system)
|
||||||
|
|
Loading…
Reference in New Issue