mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Correctly handle keywords without options.
Reported by: swills@ MFC after: 14 days
This commit is contained in:
parent
7dc6ac7b74
commit
90f854b880
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243201
@ -279,8 +279,8 @@ main(int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
/* process '-c' and/or '-k' */
|
||||
if (prt_categories || prt_keywords) {
|
||||
/* process '-c', '-k', or command line arguments. */
|
||||
if (prt_categories || prt_keywords || argc > 0) {
|
||||
if (argc > 0) {
|
||||
setlocale(LC_ALL, "");
|
||||
while (argc > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user