summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSonny Sasaka <sonnysasaka@chromium.org>2020-03-24 12:49:42 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-03-26 10:31:35 -0700
commit823821dca098018e5fee9c8556c5d0896c65b972 (patch)
treefd77983beb3db3ac492332ee8869e7a42fccee48 /plugins
parent5379e024fcafe533a3a65786ca9bc84b3284ae55 (diff)
downloadbluez-823821dca098018e5fee9c8556c5d0896c65b972.tar.gz
autopair: Fix compiler warning
With clang, comparing an array with NULL generates a warning because the value is always non-NULL. With maintainer mode enabled, this becomes a compilation error.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/autopair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/autopair.c b/plugins/autopair.c
index 043bd9b9d..3089430a8 100644
--- a/plugins/autopair.c
+++ b/plugins/autopair.c
@@ -75,7 +75,7 @@ static ssize_t autopair_pincb(struct btd_adapter *adapter,
btd_device_get_product (device));
/* The iCade shouldn't use random PINs like normal keyboards */
- if (name != NULL && strstr(name, "iCade") != NULL)
+ if (strstr(name, "iCade") != NULL)
return 0;
/* This is a class-based pincode guesser. Ignore devices with an