ls: fix SEGV when --color is used and ENABLE_LS_COLOR=n

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2019-05-26 13:53:41 +02:00
parent b2c123d484
commit 9501bc7da5

View File

@ -1086,7 +1086,7 @@ int ls_main(int argc UNUSED_PARAM, char **argv)
static const char ls_longopts[] ALIGN1 =
"full-time\0" No_argument "\xff"
"group-directories-first\0" No_argument "\xfe"
"color\0" Optional_argument "\xfd"
IF_FEATURE_LS_COLOR("color\0" Optional_argument "\xfd")
;
#endif