From 4900161462f19cfd007fd4dd3d28d6e83ae5ebac Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Wed, 3 Dec 2014 16:08:53 +0200 Subject: [PATCH] obexd: Fix comparing array to NULL An array can never be NULL. --- obexd/client/pbap.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c index 57632b4af..28203a8cc 100644 --- a/obexd/client/pbap.c +++ b/obexd/client/pbap.c @@ -1111,9 +1111,6 @@ static gboolean get_databaseid(const GDBusPropertyTable *property, char value[33]; const char *pvalue = value; - if (!pbap->databaseid) - return FALSE; - if (u128_to_string(pbap->databaseid, value, sizeof(value)) < 0) return FALSE; @@ -1137,9 +1134,6 @@ static gboolean get_primary(const GDBusPropertyTable *property, char value[33]; const char *pvalue = value; - if (!pbap->primary) - return FALSE; - if (u128_to_string(pbap->primary, value, sizeof(value)) < 0) return FALSE; @@ -1155,9 +1149,6 @@ static gboolean get_secondary(const GDBusPropertyTable *property, char value[33]; const char *pvalue = value; - if (!pbap->secondary) - return FALSE; - if (u128_to_string(pbap->secondary, value, sizeof(value)) < 0) return FALSE; -- 2.47.3