Closed Nestorfish closed 8 years ago
Doesn't seem to happen here:
./minetestmapper: unrecognized option '--foobar'
merging still seems useful, thanks ¯\_(ツ)_/¯
I had a doubt too, but it depends of build (zeros may be present just after this array in memory during execution). In my case, it happens when it is built from main directory, but it doesn't when built from a "build" dir... I will not explain this :-)
getopts requires the last element of longopts to be filled with zeros. Fixes possible segfault in case of unknown long option