From d667108bd80d37cb89af50951f3b2877b903e384 Mon Sep 17 00:00:00 2001 From: Sonny Sasaka Date: Tue, 24 Mar 2020 12:49:42 -0700 Subject: [PATCH] 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. Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- plugins/autopair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/autopair.c b/plugins/autopair.c index 043bd9b..3089430 100755 --- 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 -- 2.7.4