diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-09-27 07:53:29 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-09-27 07:53:29 +0000 |
commit | d3074a97b9803de16a65e6d377060b72f026dfd7 (patch) | |
tree | 00822257e6c322e784796a632e4ba2bfbf7ed418 /audio/manager.c | |
parent | ff57b7e4bafc2437d7ef147044b24835f3a4f4d2 (diff) |
Add missing NULL check
Diffstat (limited to 'audio/manager.c')
-rw-r--r-- | audio/manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/manager.c b/audio/manager.c index 30b78632..43635578 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -347,7 +347,8 @@ done: data->cb(data->device, data->cb_data); } else { remove_device(data->device); - data->cb(NULL, data->cb_data); + if (data->cb) + data->cb(NULL, data->cb_data); } if (data->msg) dbus_message_unref(data->msg); |