From 23173a0b9b0943848b79783fe476cd24b1eb11a1 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Sat, 17 Sep 2016 21:28:12 +0000 Subject: [PATCH] mod_crypto: c89. Reported by: Norm git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1761281 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_crypto.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/filters/mod_crypto.c b/modules/filters/mod_crypto.c index eeef07ff6d..38c1177ae9 100644 --- a/modules/filters/mod_crypto.c +++ b/modules/filters/mod_crypto.c @@ -118,13 +118,14 @@ static const char *parse_pass_conf_binary(cmd_parms *cmd, char ps = *arg; if ('f' == ps && !strncmp(arg, "file:", 5)) { - arg += 5; + const char *name; + arg += 5; if (!*arg) { return apr_pstrcat(cmd->pool, "No filename specified", NULL); } - const char *name = ap_server_root_relative(cmd->temp_pool, arg); + name = ap_server_root_relative(cmd->temp_pool, arg); if (name) { apr_file_t *file; -- 2.50.1