]> granicus.if.org Git - apache/commitdiff
remove null check
authorEric Covener <covener@apache.org>
Mon, 18 Mar 2019 12:25:48 +0000 (12:25 +0000)
committerEric Covener <covener@apache.org>
Mon, 18 Mar 2019 12:25:48 +0000 (12:25 +0000)
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

server/util.c

index 8633c6294a86d495b8a24085a128c72a7d4911b9..a4e42656678eb8cb3cfb1632dccc77c73959022a 100644 (file)
@@ -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;
     }