edbus: prevent segv

SVN revision: 78816
This commit is contained in:
Sebastian Dransfeld 2012-11-02 02:49:24 +00:00
parent 15431e52a6
commit 5b3ac2cb0c
1 changed files with 1 additions and 0 deletions

View File

@ -684,6 +684,7 @@ cb_watch_toggle(DBusWatch *watch, void *data)
{
EDBus_Handler_Data *hd;
hd = dbus_watch_get_data(watch);
if (!hd) return;
DBG("cb_watch_toggle %d", hd->fd);
hd->enabled = dbus_watch_get_enabled(watch);