Skip to content

Commit

Permalink
Merge pull request #54 from ten0s/master
Browse files Browse the repository at this point in the history
Fix for loop initial declaration
  • Loading branch information
agievich authored Jun 4, 2024
2 parents 0a0cd88 + a202eb2 commit 813d2eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/core/whereami.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 813d2eb

Please sign in to comment.