From 0047a2d08b11739aadeb4a8c28ef87416e7e11a5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 1 Aug 2011 11:42:28 +0200 Subject: options.c: Fix getopt/optind handling (closes #49, patch by Yu-Jie Lin) --- src/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3