From: chris mikkelson Date: Sat, 13 Mar 2010 06:07:40 +0000 (-0600) Subject: Fix uninitialized variable 'len' in handle_smtp(). X-Git-Url: https://git.mikk.net/?a=commitdiff_plain;h=b720c88fc1db758da6b09ef96a67e2852020f923;p=smtpsink Fix uninitialized variable 'len' in handle_smtp(). --- 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 */