From: Ryan Pan Date: Tue, 28 Aug 2012 15:35:18 +0000 (+0000) Subject: remove an unnecessary check in a nest loop of ap_create_environment() X-Git-Tag: 2.5.0-alpha~6375 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7721a9e3204a8ecde8bc1def9ec3291cd210337;p=thirdparty%2Fapache%2Fhttpd.git remove an unnecessary check in a nest loop of ap_create_environment() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1378178 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_script.c b/server/util_script.c index ca246dac679..5708c086025 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -122,7 +122,7 @@ AP_DECLARE(char **) ap_create_environment(apr_pool_t *p, apr_table_t *t) *whack++ = '_'; } while (*whack != '=') { - if (!apr_isalnum(*whack) && *whack != '_') { + if (!apr_isalnum(*whack)) { *whack = '_'; } ++whack;