From 8b2269328bf1d85c6505cf8ecb95977435bdf93c Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Tue, 31 Oct 2023 11:30:27 +1300 Subject: [PATCH] s3:utils: Remove condition that cannot be true (CID 1548341) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ‘limit’ is an unsigned integer, and thus will never be less than zero. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- source3/utils/wspsearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/wspsearch.c b/source3/utils/wspsearch.c index d2235fa8193..2c56c97736b 100644 --- a/source3/utils/wspsearch.c +++ b/source3/utils/wspsearch.c @@ -618,7 +618,7 @@ int main(int argc, char **argv) } path = talloc_strdup(talloc_tos(), poptGetArg(pc)); - if (!path || limit < 0) { + if (!path) { DBG_ERR("Invalid argument\n"); result = -1; goto out; -- 2.47.3