util.c: fix shadowed variable

This commit is contained in:
Viktor Szakats 2024-09-09 01:53:18 +02:00
parent 5f450b558b
commit 280b7988a1
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -204,12 +204,12 @@ const char *sstrerror(int err)
/* set by the main code to point to where the test dir is */
const char *path = ".";
FILE *test2fopen(long testno, const char *logdir)
FILE *test2fopen(long testno, const char *logdir2)
{
FILE *stream;
char filename[256];
/* first try the alternative, preprocessed, file */
msnprintf(filename, sizeof(filename), ALTTEST_DATA_PATH, logdir, testno);
msnprintf(filename, sizeof(filename), ALTTEST_DATA_PATH, logdir2, testno);
stream = fopen(filename, "rb");
if(stream)
return stream;