From a202eb27c838158fd1b11e5a6ab35481d85d0e45 Mon Sep 17 00:00:00 2001 From: Dmitry Klionsky Date: Tue, 4 Jun 2024 12:11:21 +0300 Subject: [PATCH] Fix for loop initial declaration --- cmd/core/whereami.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/core/whereami.c b/cmd/core/whereami.c index 80bedfba..892f9f10 100644 --- a/cmd/core/whereami.c +++ b/cmd/core/whereami.c @@ -262,8 +262,9 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) { int length = -1; FILE* maps = NULL; + int r; - for (int r = 0; r < WAI_PROC_SELF_MAPS_RETRY; ++r) + for (r = 0; r < WAI_PROC_SELF_MAPS_RETRY; ++r) { maps = fopen(WAI_PROC_SELF_MAPS, "r"); if (!maps)