Stefan Farfeleder f9ec075e88 Reset the internal state used for the 'getopts' built-in when 'shift' or 'set'
are used to modify the arguments.  Not doing so caused random memory reads or
null pointer dereferences when 'getopts' was called again later (SUSv3 says
getopts produces unspecified results in this case).

PR:	48318
2008-03-22 14:06:01 +00:00
..
2006-12-23 09:25:23 +00:00
2006-07-09 21:47:37 +00:00
2006-12-18 15:45:01 +00:00
2007-03-04 19:52:07 +00:00
2005-11-17 12:15:23 +00:00
2007-03-04 09:15:12 +00:00
2006-12-27 11:28:00 +00:00
2008-03-12 10:01:34 +00:00
2006-12-27 12:14:56 +00:00
2005-08-07 09:11:38 +00:00
2006-12-14 10:42:46 +00:00