summaryrefslogtreecommitdiff
path: root/src/thread/pthread_cond_init.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/thread/pthread_cond_init.c
parent941644e98c3d05761b4639a8ae5afacd8586d1b9 (diff)
downloadmusl-acccc93e084641861ca553317edb7da7791833b5.tar.gz
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/thread/pthread_cond_init.c')
0 files changed, 0 insertions, 0 deletions