Fix: NULL check both set_topics and clear_topics

This commit is contained in:
Denis Kenzior 2010-01-20 21:08:52 -06:00
parent 11de395af9
commit ea6ab1ea2b
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ static DBusMessage *cbs_set_powered(struct ofono_cbs *cbs, gboolean value,
if (cbs->powered == value)
goto reply;
if (!cbs->driver->set_topics)
if (!cbs->driver->set_topics || !cbs->driver->clear_topics)
goto done;
if (msg)