]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core: fix getopt(3) usage
authorGuido Falsi <madpilot@freebsd.org>
Mon, 26 Mar 2018 12:42:52 +0000 (14:42 +0200)
committerGuido Falsi <madpilot@freebsd.org>
Mon, 26 Mar 2018 12:50:37 +0000 (06:50 -0600)
commit35ebe3376d94d8f14ad4ef8cf8ab786da5416778
tree0214144626397fc0e85d7d37fdab2ed8c9385502
parentf13131b5cdee219841cc767e01101472ebd46606
core: fix getopt(3) usage

Setting optind = 0 is forced to 1 in glibc implementation, but
causes option parsing to be flawed in other implementations, for
example on FreeBSD.

ASTERISK-27773 #close

Change-Id: Ia548e69f8302e9754dbbedb6bc451c0700c66f61
main/asterisk.c