From a2a31519fb5f0313c6dcf3b251180530c9006802 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 26 Oct 2023 14:09:33 +0200 Subject: [PATCH] s3:utils: Initialize row variable in wspsearch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../../source3/utils/wspsearch.c:331:25: error: ‘row’ may be used uninitialized [-Werror=maybe-uninitialized] 331 | *rows_processed = row; | ~~~~~~~~~~~~~~~~^~~~~ Signed-off-by: Andreas Schneider 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 3650fe12f34..aa088f7c13a 100644 --- a/source3/utils/wspsearch.c +++ b/source3/utils/wspsearch.c @@ -256,7 +256,7 @@ static NTSTATUS print_rowsreturned( uint32_t *rows_processed) { NTSTATUS status; - int row; + uint32_t row = 0; TALLOC_CTX *local_ctx = NULL; struct wsp_cbasestoragevariant **rowsarray = NULL; enum ndr_err_code err;