diff options
author | Mukund Sivaraman <muks@banu.com> | 2009-09-23 07:47:20 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2009-09-27 08:09:23 +0530 |
commit | c8be0250cd88adc1fc61ded2b45354d9823b0588 (patch) | |
tree | aeac6d04cbf9de581a6ce09a014b5ec4d69ddddc /src | |
parent | 0dda30295e477800fed119fade530694370c0054 (diff) | |
download | tinyproxy-c8be0250cd88adc1fc61ded2b45354d9823b0588.tar.gz tinyproxy-c8be0250cd88adc1fc61ded2b45354d9823b0588.zip |
Fix use of uninitialized variable
Diffstat (limited to '')
-rw-r--r-- | src/reverse-proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reverse-proxy.c b/src/reverse-proxy.c index 07bc8cd..7346fc4 100644 --- a/src/reverse-proxy.c +++ b/src/reverse-proxy.c @@ -102,7 +102,7 @@ char *reverse_rewrite_url (struct conn_s *connptr, hashmap_t hashofheaders, char *rewrite_url = NULL; char *cookie = NULL; char *cookieval; - struct reversepath *reverse; + struct reversepath *reverse = NULL; /* Reverse requests always start with a slash */ if (*url == '/') { @@ -153,7 +153,7 @@ char *reverse_rewrite_url (struct conn_s *connptr, hashmap_t hashofheaders, log_message (LOG_CONN, "Rewriting URL: %s -> %s", url, rewrite_url); /* Store reverse path so that the magical tracking cookie can be set */ - if (config.reversemagic) + if (config.reversemagic && reverse) connptr->reversepath = safestrdup (reverse->path); return rewrite_url; |