From: Christophe Jaillet Date: Sat, 1 Aug 2020 16:56:25 +0000 (+0000) Subject: This not a hot path in RL use case, but looks to be one during testing with the test... X-Git-Tag: 2.5.0-alpha2-ci-test-only~1245 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef961c372a85962e225e70367aacbc8539ffbf4c;p=thirdparty%2Fapache%2Fhttpd.git This not a hot path in RL use case, but looks to be one during testing with the test framework. 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 --- diff --git a/modules/generators/mod_info.c b/modules/generators/mod_info.c index 90c84d03f24..1662242afe9 100644 --- a/modules/generators/mod_info.c +++ b/modules/generators/mod_info.c @@ -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;