Skip to content

Commit 7bca3ba

Browse files
committed
main.c: fixed forgotten initialization for second loop using i
this caused the combination of -q -f somefile to not find the dll in the current dir, because it started iterating the directory list with 2 instead of 0.
1 parent f011ff9 commit 7bca3ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ int main(int argc, char *argv[]) {
103103
// search DLL
104104

105105
set_own_dir(argv[0]);
106+
107+
i = 0;
106108

107109
while(dll_dirs[i]) {
108110
snprintf(buf, sizeof(buf), "%s/%s", dll_dirs[i], dll_name);

0 commit comments

Comments
 (0)