You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2018/05/26 16:54:23 UTC
svn commit: r1832317 - /httpd/httpd/trunk/server/util_expr_eval.c
Author: jailletc36
Date: Sat May 26 16:54:23 2018
New Revision: 1832317
URL: http://svn.apache.org/viewvc?rev=1832317&view=rev
Log:
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.
Modified:
httpd/httpd/trunk/server/util_expr_eval.c
Modified: httpd/httpd/trunk/server/util_expr_eval.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_expr_eval.c?rev=1832317&r1=1832316&r2=1832317&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_expr_eval.c (original)
+++ httpd/httpd/trunk/server/util_expr_eval.c Sat May 26 16:54:23 2018
@@ -2120,7 +2120,7 @@ static int core_expr_lookup(ap_expr_look
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_look
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);