]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
protect const-ness of variant->file_name by using ap_strchr_c() instead
authorJeff Trawick <trawick@apache.org>
Fri, 24 Aug 2001 10:40:04 +0000 (10:40 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 24 Aug 2001 10:40:04 +0000 (10:40 +0000)
of strchr()

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

modules/mappers/mod_negotiation.c

index 46111f5007e006d0430a76c1799970583ac6acd3..18d3331a81f30c7fdc73c84b255b544069d011d3 100644 (file)
@@ -2637,7 +2637,7 @@ static int do_negotiation(request_rec *r, negotiation_state *neg,
              * non-neighboring variant.  We can have a non-neighboring
              * variant when processing a type map.  
              */
-            if (strchr(variant->file_name, '/'))
+            if (ap_strchr_c(variant->file_name, '/'))
                 neg->is_transparent = 0;
         }
     }