Gregory Nutt 6c507730bd Fix Use of Variable before NULL check
Found a place in getopt_common() where the option string is used before it is checked if it is NULL.  This can happen because the short option string is optional for getopt_long() and getopt_long_only()

If optstring is NULL, that would be an ERROR for getopt(), but not for the getopt_long() versions.

Should effect only the getopt() APIs

Tested on the simulator using apps/testing/ostest.
2021-04-03 18:23:35 +01:00
..
2021-03-03 18:52:53 -08:00
2021-03-03 18:52:53 -08:00
2021-03-02 03:44:06 -08:00
2021-03-02 03:44:06 -08:00
2021-03-02 03:44:06 -08:00
2020-05-01 10:43:47 -03:00
2021-03-02 03:44:06 -08:00
2021-03-02 03:44:06 -08:00
2021-03-02 03:44:06 -08:00
2021-03-03 18:52:53 -08:00