From: Andreas Eversberg Date: Tue, 28 Sep 2010 06:55:29 +0000 (+0200) Subject: [chan_lcr] Fixed uninitialized variable in ast_read() X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=42959fafffad3a47ee2b4bb472a16730deb6586a [chan_lcr] Fixed uninitialized variable in ast_read() Thanx to Martin for this bug report. --- diff --git a/chan_lcr.c b/chan_lcr.c index 877bd11..110c337 100644 --- a/chan_lcr.c +++ b/chan_lcr.c @@ -2196,7 +2196,7 @@ static int lcr_write(struct ast_channel *ast, struct ast_frame *f) static struct ast_frame *lcr_read(struct ast_channel *ast) { struct chan_call *call; - int len; + int len = 0; ast_mutex_lock(&chan_lock); call = ast->tech_pvt;