From 7bca3ba5ef24eb967cb392b793bae7aa9b96073f Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sun, 4 Nov 2012 06:14:33 +0100 Subject: [PATCH] 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. --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 996165f..a3378d5 100644 --- a/src/main.c +++ b/src/main.c @@ -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);