From 68562ac21e6223226afc934004fa5ba9dccd442e Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Sun, 3 Dec 2023 11:56:38 +0000 Subject: [PATCH] apr_getopt: Fix error message. The "-" is the invalid character, not the empty string. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1914301 13f79535-47bb-0310-9956-ffa450edef68 --- misc/unix/getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/unix/getopt.c b/misc/unix/getopt.c index b6bcf1902b..77391a4157 100644 --- a/misc/unix/getopt.c +++ b/misc/unix/getopt.c @@ -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); } }