Hi,

Reviewed-by: Joonas Kylmälä <joonas.kylm...@iki.fi>

Joonas

Denis 'GNUtoo' Carikli:
> 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 <gnu...@cyberdimension.org>
> ---
>  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++) {
> 
_______________________________________________
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to