From b8e44b0969e6e5420a247f739dd1d8c80c36e8b5 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> Date: Thu, 9 Dec 2021 10:37:33 +0100 Subject: [PATCH] Condition `len>=0` is true after `if (len < 0)` Fixes a Codacy alert: Condition 'len>=0' is always true Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> --- compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat.c b/compat.c index ecaf87d3..6b7a06c8 100644 --- a/compat.c +++ b/compat.c @@ -99,7 +99,7 @@ int openconnect__vasprintf(char **strp, const char *fmt, va_list ap) res = NULL; goto err; } - if (len >= 0 && len < 160) + if (len < 160) goto out; free(res); -- 2.49.0