summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-04-17 01:04:54 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-06-20 16:17:26 +0200
commite5eedc5d6d0f186f01778bfe51ba58a1656686f6 (patch)
treeac8b6677656b99dc84b9e0bb72d2c9a6cdf081f1
parent6d1b7039805cfa95c833a2257f4f19a4c4023ff3 (diff)
downloadhardware_replicant_libsamsung-ril-e5eedc5d6d0f186f01778bfe51ba58a1656686f6.tar.gz
hardware_replicant_libsamsung-ril-e5eedc5d6d0f186f01778bfe51ba58a1656686f6.tar.bz2
hardware_replicant_libsamsung-ril-e5eedc5d6d0f186f01778bfe51ba58a1656686f6.zip
client: Fix warning about array comparison to a null pointer
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 <GNUtoo@cyberdimension.org> Reviewed-by: Joonas Kylmälä <joonas.kylmala at iki.fi>
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
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++) {