From 11f4cfeb494b3a815d7c236c36892f1d121f2d69 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Fri, 30 Jun 2017 11:46:04 +1000 Subject: [PATCH] Fix C for loop initializer style nit. --- test/c/testlib/testlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/c/testlib/testlib.c b/test/c/testlib/testlib.c index aa88aa36..c037ab5b 100644 --- a/test/c/testlib/testlib.c +++ b/test/c/testlib/testlib.c @@ -223,8 +223,8 @@ bool buf1s_equal(const char* prefix, return false; } char* msg = fail_msg; - size_t i = 0; - for (; (i < got->wi) && (i < want->wi); i++) { + size_t i; + for (i = 0; (i < got->wi) && (i < want->wi); i++) { if (got->ptr[i] != want->ptr[i]) { break; }