From: Eric Covener Date: Mon, 18 Mar 2019 12:25:48 +0000 (+0000) Subject: remove null check X-Git-Tag: 2.5.0-alpha2-ci-test-only~2094 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf4dcc9f77c2450e14497582f3f8e61a405ae948;p=thirdparty%2Fapache%2Fhttpd.git remove null check fails in maintainer mode w/ __attribute__(nonnull)) util.c:576:10: error: nonnull parameter 'name' will evaluate to 'true' on first encounter [-Werror,-Wpointer-bool-conversion] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1855755 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util.c b/server/util.c index 8633c6294a8..a4e42656678 100644 --- a/server/util.c +++ b/server/util.c @@ -573,7 +573,7 @@ AP_DECLARE(void) ap_no2slash_ex(char *name, int is_fs_path) char *d, *s; - if (!name || !*name) { + if (!*name) { return; }