summaryrefslogtreecommitdiffstats
path: root/server/core.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server/core.c3
1 files changed, 2 insertions, 1 deletions
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;