]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
This not a hot path in RL use case, but looks to be one during testing with the test...
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 1 Aug 2020 16:56:25 +0000 (16:56 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 1 Aug 2020 16:56:25 +0000 (16:56 +0000)
Sso save a few cycles in this (unusual) use case.

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

modules/generators/mod_info.c

index 90c84d03f24ae8cf77a56ec9a2b4d202f0eecd4f..1662242afe929b71dfc7c1941298d168a846b110 100644 (file)
@@ -230,7 +230,7 @@ static int mod_info_has_cmd(const command_rec * cmds, ap_directive_t * dir)
     if (cmds == NULL)
         return 1;
     for (cmd = cmds; cmd->name; ++cmd) {
-        if (strcasecmp(cmd->name, dir->directive) == 0)
+        if (ap_cstr_casecmp(cmd->name, dir->directive) == 0)
             return 1;
     }
     return 0;