From a9d6acc088be7d5e027531b7377f25850aab02b3 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Tue, 7 May 2019 15:58:02 +0200 Subject: client: Fix warning about array comparison to a null pointer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without that fix we have: client.c:32:6: error: comparison of array 'ril_clients' equal to a null pointer is always false [-Werror,-Wtautological-pointer-compare] if (ril_clients == NULL || ril_clients_count == 0) ^~~~~~~~~~~ ~~~~ Signed-off-by: Denis 'GNUtoo' Carikli Reviewed-by: Joonas Kylmälä --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index ab66a40..8958fd4 100644 --- a/client.c +++ b/client.c @@ -29,7 +29,7 @@ struct ril_client *ril_client_find_id(int id) { unsigned int i; - if (ril_clients == NULL || ril_clients_count == 0) + if (ril_clients_count == 0) return NULL; for (i = 0; i < ril_clients_count; i++) { -- cgit v1.2.3