From 50e036dc623ccf4ed1dea08c770ce1aa4d1a7b85 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 16 Jan 2008 14:53:48 +0000 Subject: [PATCH] Missed an assignment in last commit. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2352 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index e8a9f7a7..cc20a641 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -230,7 +230,8 @@ http_GetHdr(const struct http *hp, const char *hdr, char **ptr) hdr++; u = http_findhdr(hp, l - 1, hdr); if (u == 0) { - *ptr = NULL; + if (ptr != NULL) + *ptr = NULL; return (0); } if (ptr != NULL) { -- 2.39.5