about summary refs log tree commit diff
path: root/src/env/unsetenv.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-21 22:24:50 +0200
committerRich Felker <dalias@aerifal.cx>2014-11-15 23:44:53 -0500
commitacccc93e084641861ca553317edb7da7791833b5 (patch)
tree3e18e6ed37e3710900624fd09657fbf7fb2c5c9f /src/env/unsetenv.c
parent941644e98c3d05761b4639a8ae5afacd8586d1b9 (diff)
downloadmusl-acccc93e084641861ca553317edb7da7791833b5.tar.gz
musl-acccc93e084641861ca553317edb7da7791833b5.tar.xz
musl-acccc93e084641861ca553317edb7da7791833b5.zip
getopt: fix optional argument processing
Processing an option character with optional argument fails if the
option is last on the command line. This happens because the
if (optind >= argc) check runs first before testing for optional
argument.
Diffstat (limited to 'src/env/unsetenv.c')
0 files changed, 0 insertions, 0 deletions