Commit 0047a2d0 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

options.c: Fix getopt/optind handling (closes #49, patch by Yu-Jie Lin)

parent c4e8591b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}