From 7c3e46820da91ac03f0d160b6806e7f3d86c5304 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Mon, 3 Aug 2015 15:29:42 +0000 Subject: [PATCH] c89 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1693918 13f79535-47bb-0310-9956-ffa450edef68 --- server/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/core.c b/server/core.c index 424c364bae..97c0b1c862 100644 --- a/server/core.c +++ b/server/core.c @@ -3808,6 +3808,7 @@ static const char *set_protocols(cmd_parms *cmd, void *dummy, { core_server_config *conf = ap_get_core_module_config(cmd->server->module_config); + const char **np; const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE); if (err) { @@ -3815,7 +3816,7 @@ static const char *set_protocols(cmd_parms *cmd, void *dummy, } /* Should we check for some ALPN valid char sequence here? */ - const char **np = (const char **)apr_array_push(conf->protocols); + np = (const char **)apr_array_push(conf->protocols); *np = arg; return NULL; -- 2.40.0