summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-08-01 11:42:28 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-08-01 11:42:28 +0200
commit0047a2d08b11739aadeb4a8c28ef87416e7e11a5 (patch)
treea9eb161e567e95a2102794a50d347f73471ff917 /src/options.c
parentc4e8591b1886144873cb45bfbda504fad89635f5 (diff)
options.c: Fix getopt/optind handling (closes #49, patch by Yu-Jie Lin)
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c
index b5a95dd..052f8a8 100644
--- a/src/options.c
+++ b/src/options.c
@@ -794,7 +794,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
add_file_to_filelist_recursively(".", FILELIST_FIRST);
/* So that we can safely be called again */
- optind = 1;
+ optind = 0;
return;
}