This patch will fix the problem and will be in a release "soon":
diff --git a/autoopts/find.c b/autoopts/find.c
index 92584d8..f49667b 100644
--- a/autoopts/find.c
+++ b/autoopts/find.c
@@ -107,6 +107,9 @@ opt_ambiguities(tOptions * opts, char con
st * name, int nm_len)
fputs(zambig_list_msg, stderr);
do {
+ if (pOD->pz_Name == NULL)
+ continue; /* doc option */
+
if (strneqvcmp(name, pOD->pz_Name, nm_len) == 0)
fprintf(stderr, zambig_file, hyph, pOD->pz_Name);
@@ -375,7 +378,7 @@ opt_find_long(tOptions * opts, char const
* opt_name, tOptState * state)
bool disable = false;
int ct;
- if (nm_len <= 0) {
+ if (nm_len <= 1) {
fprintf(stderr, zInvalOptName, opts->pzProgName, opt_name);
(*opts->pUsageProc)(opts, EXIT_FAILURE);
/* NOTREACHED */
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]