diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-12-03 16:08:53 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-12-04 14:26:57 +0200 |
commit | 4900161462f19cfd007fd4dd3d28d6e83ae5ebac (patch) | |
tree | 7446cd903c109abed54b1968092576a098e1153e /obexd/client | |
parent | 33c2e6b851308f3333eac398792534f951e63647 (diff) | |
download | bluez-4900161462f19cfd007fd4dd3d28d6e83ae5ebac.tar.gz |
obexd: Fix comparing array to NULL
An array can never be NULL.
Diffstat (limited to 'obexd/client')
-rw-r--r-- | obexd/client/pbap.c | 9 |
1 files changed, 0 insertions, 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; |