Mailing List Archive

r102 - trunk/varnish-cache/bin/varnishd
Author: phk
Date: 2006-04-03 16:41:51 +0200 (Mon, 03 Apr 2006)
New Revision: 102

Modified:
trunk/varnish-cache/bin/varnishd/cache_httpd.c
Log:
Move memset further up.


Modified: trunk/varnish-cache/bin/varnishd/cache_httpd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_httpd.c 2006-04-03 14:20:41 UTC (rev 101)
+++ trunk/varnish-cache/bin/varnishd/cache_httpd.c 2006-04-03 14:41:51 UTC (rev 102)
@@ -21,6 +21,8 @@

sp->handling = HND_Unclass;

+ memset(&sp->http, 0, sizeof sp->http);
+
/* First, isolate and possibly identify request type */
sp->http.req = sp->rcv;
for (p = sp->rcv; isalpha(*p); p++)
@@ -55,8 +57,6 @@
if (*p == '\r')
p++;

- memset(&sp->http, 0, sizeof sp->http);
-
for (; p < sp->rcv + sp->rcv_len; p = r) {
q = strchr(p, '\n');
r = q + 1;