From: AndrĂ© Malo Date: Wed, 27 Aug 2003 15:35:13 +0000 (+0000) Subject: minor optimization. X-Git-Tag: pre_ajp_proxy~1205 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baf647dcf89bfbf0e675c9b415124781e10ccea5;p=apache minor optimization. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101111 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 8fa10af77d..824b793652 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -1329,13 +1329,10 @@ static int parse_expr(include_ctx_t *ctx, const char *expr, int *was_error) break; case TOKEN_RBRACE: - while (current) { - if (current->token.type == TOKEN_LBRACE) { - TYPE_TOKEN(¤t->token, TOKEN_GROUP); - break; - } + while (current && current->token.type != TOKEN_LBRACE) { current = current->parent; } + if (!current) { ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, "Unmatched ')' in \"%s\" in file %s", @@ -1343,6 +1340,8 @@ static int parse_expr(include_ctx_t *ctx, const char *expr, int *was_error) *was_error = 1; return retval; } + + TYPE_TOKEN(¤t->token, TOKEN_GROUP); break; case TOKEN_NOT: