From: phk Date: Sun, 21 Dec 2008 18:35:47 +0000 (+0000) Subject: Remove pointless initialization. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98249a012c8842d9ba8f5019c63be1139e499f4d;p=varnish Remove pointless initialization. Fix indentation. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3493 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_session.c b/varnish-cache/bin/varnishd/cache_session.c index fa7e741d..444e4613 100644 --- a/varnish-cache/bin/varnishd/cache_session.c +++ b/varnish-cache/bin/varnishd/cache_session.c @@ -382,7 +382,7 @@ SES_ResetBackendTimeouts(struct sess *sp) void SES_InheritBackendTimeouts(struct sess *sp) { - struct backend *be = NULL; + struct backend *be; AN(sp); AN(sp->vbe); @@ -395,13 +395,12 @@ SES_InheritBackendTimeouts(struct sess *sp) * is parameter < backend definition < VCL. */ if (be->connect_timeout > 1e-3 && - sp->connect_timeout == params->connect_timeout) + sp->connect_timeout == params->connect_timeout) sp->connect_timeout = be->connect_timeout; if (be->first_byte_timeout > 1e-3 && - sp->first_byte_timeout == params->first_byte_timeout) + sp->first_byte_timeout == params->first_byte_timeout) sp->first_byte_timeout = be->first_byte_timeout; - if (be->between_bytes_timeout > 1e-3 - && sp->between_bytes_timeout == params->between_bytes_timeout) + if (be->between_bytes_timeout > 1e-3 && + sp->between_bytes_timeout == params->between_bytes_timeout) sp->between_bytes_timeout = be->between_bytes_timeout; } -