Commit d3f12880 authored by unknown's avatar unknown
Browse files

better followup fix for my_getopt (Argh!)

parent 1175b485
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -363,9 +363,6 @@ int handle_options(int *argc, char ***argv,
		  optend= (char*) " ";
		}
		else
		{
		  /* Check if there are more arguments after this one */
		  if (!pos[1])
		{
                  if (optp->arg_type == OPT_ARG)
                  {
@@ -374,6 +371,9 @@ int handle_options(int *argc, char ***argv,
                    get_one_option(optp->id, optp, argument);
                    continue;
                  }
		  /* Check if there are more arguments after this one */
		  if (!pos[1])
		  {
                    if (my_getopt_print_errors)
                      fprintf(stderr,
                              "%s: option '-%c' requires an argument\n",