From: Douglas Bagnall Date: Wed, 12 Jul 2023 06:34:49 +0000 (+1200) Subject: s4/torture/gentest: explain seemingly redundant initialisation X-Git-Tag: talloc-2.4.2~1017 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58011bc64a8967b95c7880f07d3aedcb82123563;p=thirdparty%2Fsamba.git s4/torture/gentest: explain seemingly redundant initialisation It seems silly, but it confused me. Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index 77647608d1f..a832c597379 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -3051,6 +3051,7 @@ static int run_test(struct tevent_context *ev, struct loadparm_context *lp_ctx) memset(open_handles, 0, options.max_open_handles * sizeof(open_handles[0])); num_open_handles = 0; + /* reset the counts from previous runs */ for (i=0;i