2011/6/7 Bastien Nocera:
quoted hunk ↗ jump to hunk
diff --git a/src/adapter.c b/src/adapter.c
quoted hunk ↗ jump to hunk
@@ -938,38 +884,29 @@ void adapter_update_local_name(struct btd_adapter *adapter, const char *name)
+ int err = adapter_ops->set_name(adapter->dev_id, name);
+ if (err < 0)
+ return -err;
this should be:
return err;
else the error isn't detected in the calling code:
+ err = adapter_update_local_name (adapter, name);
+ if (err < 0)
+ return btd_error_failed(msg, strerror(-err));
--
Daniele Forsi