Skip to content

Commit

Permalink
apr_getopt: Fix error message. The "-" is the invalid character, not
Browse files Browse the repository at this point in the history
the empty string.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1914301 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
minfrin committed Dec 3, 2023
1 parent 2221312 commit 68562ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/unix/getopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ APR_DECLARE(apr_status_t) apr_getopt_long(apr_getopt_t *os,
}
else
if (*p == '\0') /* Bare "-" is illegal */
return serr(os, "invalid option", p, APR_BADCH);
return serr(os, "invalid option", "-", APR_BADCH);
}
}

Expand Down

0 comments on commit 68562ac

Please sign in to comment.