From b720c88fc1db758da6b09ef96a67e2852020f923 Mon Sep 17 00:00:00 2001 From: chris mikkelson Date: Sat, 13 Mar 2010 00:07:40 -0600 Subject: [PATCH] Fix uninitialized variable 'len' in handle_smtp(). --- smtp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/smtp.c b/smtp.c index f93172a..406370b 100644 --- a/smtp.c +++ b/smtp.c @@ -276,9 +276,7 @@ static void handle_smtp(struct conn *c) { char rbuf[2048], *s; - int len; - - /* WRITEME: how to detect "line too long" error ? */ + int len = 0; if (c->rdata.s) { /* XXX -- c->rdata.off unused */ -- 2.50.1