Correctly handle keywords without options.

Reported by: swills@
MFC after:	14 days
This commit is contained in:
grog 2012-11-17 23:49:20 +00:00
parent 4002468097
commit 2e5b9af6e5

View File

@ -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) {