From a0bb8d404122efdacbab266c62cc8992681634d0 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 3 Mar 2009 12:29:55 +0000 Subject: [PATCH] Flexelint nitpickery. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3867 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvarnish/vlu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/varnish-cache/lib/libvarnish/vlu.c b/varnish-cache/lib/libvarnish/vlu.c index 3aec5879..15f63ad7 100644 --- a/varnish-cache/lib/libvarnish/vlu.c +++ b/varnish-cache/lib/libvarnish/vlu.c @@ -62,12 +62,12 @@ VLU_New(void *priv, vlu_f *func, unsigned bufsize) l->func = func; l->priv = priv; l->bufl = bufsize - 1; + l->telnet = -1; l->buf = malloc(l->bufl + 1); if (l->buf == NULL) { FREE_OBJ(l); l = NULL; } - l->telnet = -1; } return (l); } @@ -119,7 +119,7 @@ vlu_dotelnet(struct vlu *l, char *p) /* Return WONT for these */ memcpy(tno, p, 3); tno[1] = (char)252; - write(l->telnet, tno, 3); + (void)write(l->telnet, tno, 3); i = 3; break; default: @@ -198,7 +198,7 @@ int VLU_Data(const void *ptr, int len, struct vlu *l) { const char *p; - int i; + int i = 0; p = ptr; CHECK_OBJ_NOTNULL(l, LINEUP_MAGIC); -- 2.39.5