From c8be0250cd88adc1fc61ded2b45354d9823b0588 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Wed, 23 Sep 2009 07:47:20 +0530 Subject: Fix use of uninitialized variable --- src/reverse-proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/reverse-proxy.c') 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; -- cgit v1.2.3