Skip to content

Commit

Permalink
main.c: fixed forgotten initialization for second loop using i
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rofl0r committed Nov 4, 2012
1 parent f011ff9 commit 7bca3ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ int main(int argc, char *argv[]) {
// search DLL

set_own_dir(argv[0]);

i = 0;

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

0 comments on commit 7bca3ba

Please sign in to comment.