Diff between 5bd311398e66700703e51c2aa8240e3a0037e938 and 9c535867ec838e03f7abf0c4b5f14c527b3d6607
Changed Files
| File | Additions | Deletions | Status |
| attrib/gatt-service.c | +2 | -2 | modified |
Full Patch
diff --git a/attrib/gatt-service.c b/attrib/gatt-service.c
index 3199830..ead3f8e 100644
--- a/attrib/gatt-service.c
+++ b/attrib/gatt-service.c
@@ -214,7 +214,7 @@ static gboolean add_characteristic(uint16_t *handle, struct gatt_info *info)
}
}
- if (info->value_handle)
+ if (info->value_handle != NULL)
*info->value_handle = a->handle;
/* client characteristic configuration descriptor */
@@ -227,7 +227,7 @@ static gboolean add_characteristic(uint16_t *handle, struct gatt_info *info)
a = attrib_db_add(h++, &bt_uuid, ATT_NONE, ATT_AUTHENTICATION,
cfg_val, sizeof(cfg_val));
- if (info->ccc_handle)
+ if (info->ccc_handle != NULL)
*info->ccc_handle = a->handle;
}