From 4be1913dd2ad7ac09c8ba948e355c062e44ee2aa Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Sat, 26 May 2018 16:54:23 +0000 Subject: [PATCH] Fix a potential un-intialized variable usage warning. This can not be a runtime ixsue, because, in such a case, we would assert and abort before. PR 59819. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1832317 13f79535-47bb-0310-9956-ffa450edef68 --- server/util_expr_eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/util_expr_eval.c b/server/util_expr_eval.c index 9220acb749..649d45664f 100644 --- a/server/util_expr_eval.c +++ b/server/util_expr_eval.c @@ -2120,7 +2120,7 @@ static int core_expr_lookup(ap_expr_lookup_parms *parms) case AP_EXPR_FUNC_STRING: case AP_EXPR_FUNC_OP_UNARY: case AP_EXPR_FUNC_OP_BINARY: { - const struct expr_provider_single *prov; + const struct expr_provider_single *prov = NULL; switch (parms->type) { case AP_EXPR_FUNC_STRING: prov = string_func_providers; @@ -2134,7 +2134,7 @@ static int core_expr_lookup(ap_expr_lookup_parms *parms) default: ap_assert(0); } - while (prov->func) { + while (prov && prov->func) { int match; if (parms->type == AP_EXPR_FUNC_OP_UNARY) match = !strcmp(prov->name, parms->name); -- 2.50.1