summaryrefslogtreecommitdiff
path: root/src/bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth.c')
-rw-r--r--src/bluetooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth.c b/src/bluetooth.c
index 57163aa..0207919 100644
--- a/src/bluetooth.c
+++ b/src/bluetooth.c
@@ -157,7 +157,7 @@ static int bt_generic_call(DBusConnection *conn,
if (msg == NULL) {
near_error("Unable to allocate new D-Bus %s message", method);
- err = -ENOMEM;
+ return -ENOMEM;
}
va_start(args, type);