Diff between dec6e148021a4bb8e7fdaae9f0f612a05086b9e7 and d5f3308f9c433d0db8c19344ac32abbc7b036c8c
Changed Files
| File | Additions | Deletions | Status |
| tools/gatt-service.c | +1 | -1 | modified |
Full Patch
diff --git a/tools/gatt-service.c b/tools/gatt-service.c
index cba0ff3..ef479ed 100644
--- a/tools/gatt-service.c
+++ b/tools/gatt-service.c
@@ -139,7 +139,7 @@ static void register_external_service(gpointer a, gpointer b)
msg = dbus_message_new_method_call("org.bluez", "/org/bluez",
GATT_MGR_IFACE, "RegisterService");
- if (msg == NULL) {
+ if (!msg) {
printf("Couldn't allocate D-Bus message\n");
return;
}