]> granicus.if.org Git - apache/commitdiff
mod_crypto: c89.
authorYann Ylavic <ylavic@apache.org>
Sat, 17 Sep 2016 21:28:12 +0000 (21:28 +0000)
committerYann Ylavic <ylavic@apache.org>
Sat, 17 Sep 2016 21:28:12 +0000 (21:28 +0000)
Reported by: Norm <normw gknw.net>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1761281 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_crypto.c

index eeef07ff6d249532ca94748d166a29eb98ef92f2..38c1177ae9178d5a6450667a86604733045d1c61 100644 (file)
@@ -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;