aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--main.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 16133845..759c375f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,12 @@
(do_dcngettext): Ditto.
(do_bindtextdomain): Initialize save and save1.
+ Unrelated:
+
+ * main.c (optlist): Make 'L' option's argument optional, to
+ match --lint. Thanks to Manuel Collado <mcollado2011@gmail.com>
+ for the report.
+
2017-12-22 Arnold D. Robbins <arnold@skeeve.com>
* config.guess, config.sub, depcomp, install-sh: Updated
diff --git a/main.c b/main.c
index 2590b75b..300df7e8 100644
--- a/main.c
+++ b/main.c
@@ -1443,7 +1443,7 @@ parse_args(int argc, char **argv)
/*
* The + on the front tells GNU getopt not to rearrange argv.
*/
- const char *optlist = "+F:f:v:W;bcCd::D::e:E:ghi:l:L:nNo::Op::MPrSstVYZ:";
+ const char *optlist = "+F:f:v:W;bcCd::D::e:E:ghi:l:L::nNo::Op::MPrSstVYZ:";
int old_optind;
int c;
char *scan;