From: phk Date: Wed, 16 Jan 2008 14:53:48 +0000 (+0000) Subject: Missed an assignment in last commit. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50e036dc623ccf4ed1dea08c770ce1aa4d1a7b85;p=varnish Missed an assignment in last commit. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2352 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- 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) {