e_dbus_bus_get() might return NULL. Please, don't segv.



SVN revision: 52505
This commit is contained in:
Lucas De Marchi 2010-09-20 19:47:56 +00:00
parent 82a9d03e6e
commit 3bf671c3a3
1 changed files with 1 additions and 1 deletions

View File

@ -1312,7 +1312,7 @@ e_modapi_init(E_Module *m)
return NULL;
ctxt->agent.conn = e_dbus_bus_get(DBUS_BUS_SYSTEM);
if (!e_bluez_system_init(ctxt->agent.conn))
if ((!ctxt->agent.conn) || (!e_bluez_system_init(ctxt->agent.conn)))
goto error_bluez_system_init;
bluez_mod = m;