From a71c27047b4ff3c216cc176ba1e6fc80f55b9032 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Tue, 28 Sep 2010 08:55:29 +0200 Subject: [PATCH 1/1] [chan_lcr] Fixed uninitialized variable in ast_read() Thanx to Martin for this bug report. --- chan_lcr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.13.6