From: Dr. David von Oheimb Date: Tue, 18 May 2021 09:23:13 +0000 (+0200) Subject: find-doc-nits -c: Fix handling in case expected helpstr is not found X-Git-Tag: openssl-3.0.0-alpha17~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e34307b8ac51a57d300e3a302de410eb6c726b40;p=thirdparty%2Fopenssl.git find-doc-nits -c: Fix handling in case expected helpstr is not found Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/15329) --- diff --git a/util/find-doc-nits b/util/find-doc-nits index e8439b86261..fd465f6d0be 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -1048,7 +1048,8 @@ sub checkflags { next if m/^\s*#\s*if/; err("$cmd does not implement help for -$expect_helpstr") unless m/^\s*"/; $expect_helpstr = ""; - } elsif (m/\{\s*"([^"]+)"\s*,\s*OPT_[A-Z0-9_]+\s*,\s*('[-\/:<>cEfFlMnNpsuU]'|0)\s*,(.*)$/ + } + if (m/\{\s*"([^"]+)"\s*,\s*OPT_[A-Z0-9_]+\s*,\s*('[-\/:<>cEfFlMnNpsuU]'|0)\s*,(.*)$/ && !($cmd eq "s_client" && $1 eq "wdebug")) { push @cmdopts, $1; $expect_helpstr = $1;