diff options
| author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-04-17 01:04:54 +0200 |
|---|---|---|
| committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-04-17 15:49:41 +0200 |
| commit | 62c44b1600e4d89dffaa04936121e8568bb41cb3 (patch) | |
| tree | dce31f3ff5d6188c87b58fd290f01c7313156aec | |
| parent | a28fe691cad5612621a2a2d063cf2d0daf4fe98f (diff) | |
| download | hardware_replicant_libsamsung-ril-62c44b1600e4d89dffaa04936121e8568bb41cb3.tar.gz hardware_replicant_libsamsung-ril-62c44b1600e4d89dffaa04936121e8568bb41cb3.tar.bz2 hardware_replicant_libsamsung-ril-62c44b1600e4d89dffaa04936121e8568bb41cb3.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>
| -rw-r--r-- | client.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) { |
