]> granicus.if.org Git - apache/commitdiff
mod_proxy_ftp: Fix comparison of char* to '\0'
authorPaul Querna <pquerna@apache.org>
Fri, 3 Jun 2005 02:44:39 +0000 (02:44 +0000)
committerPaul Querna <pquerna@apache.org>
Fri, 3 Jun 2005 02:44:39 +0000 (02:44 +0000)
PR: 34512

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@179704 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_ftp.c

index a6737cd2bb827484df663db7b081dffb2193a6ad..2d53dea13bc497439eb73c1d4339423d4e79cd05 100644 (file)
@@ -90,7 +90,7 @@ static int ftp_check_globbingchars(const char *path)
     for ( ; *path; ++path) {
         if (*path == '\\')
         ++path;
-        if (path != '\0' && strchr(FTP_GLOBBING_CHARS, *path) != NULL)
+        if (*path != '\0' && strchr(FTP_GLOBBING_CHARS, *path) != NULL)
             return TRUE;
     }
     return FALSE;