Diff between 15225b1e0be189d8ceeaecb6c8751fbabc4d8e6f and fb0ccc968388b8e172a7ae68336334fb20e40bac
Changed Files
| File | Additions | Deletions | Status |
| client/advertising.c | +1 | -1 | modified |
Full Patch
diff --git a/client/advertising.c b/client/advertising.c
index bfdebd5..76cee3d 100644
--- a/client/advertising.c
+++ b/client/advertising.c
@@ -131,7 +131,7 @@ static gboolean get_type(const GDBusPropertyTable *property,
{
const char *type = "peripheral";
- if (!ad.type || strlen(ad.type) > 0)
+ if (ad.type && strlen(ad.type) > 0)
type = ad.type;
dbus_message_iter_append_basic(iter, DBUS_TYPE_STRING, &type);