From: Joseph Sutton Date: Mon, 30 Oct 2023 22:30:27 +0000 (+1300) Subject: s3:utils: Remove condition that cannot be true (CID 1548341) X-Git-Tag: talloc-2.4.2~879 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b2269328bf1d85c6505cf8ecb95977435bdf93c;p=thirdparty%2Fsamba.git s3:utils: Remove condition that cannot be true (CID 1548341) ‘limit’ is an unsigned integer, and thus will never be less than zero. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- 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;