summaryrefslogtreecommitdiffstats
path: root/chan_lcr.c
diff options
context:
space:
mode:
authorAndreas Eversberg2010-09-28 08:55:29 +0200
committerAndreas Eversberg2010-09-28 08:55:29 +0200
commita71c27047b4ff3c216cc176ba1e6fc80f55b9032 (patch)
treed62bacc3678612e2be6b241ae36f6bd58b7bd29f /chan_lcr.c
parent[chan_lcr] Added second caller ID (ANI) in case the caller ID is user provided. (diff)
downloadlcr-a71c27047b4ff3c216cc176ba1e6fc80f55b9032.tar.gz
lcr-a71c27047b4ff3c216cc176ba1e6fc80f55b9032.tar.xz
lcr-a71c27047b4ff3c216cc176ba1e6fc80f55b9032.zip
[chan_lcr] Fixed uninitialized variable in ast_read()
Thanx to Martin for this bug report.
Diffstat (limited to 'chan_lcr.c')
-rw-r--r--chan_lcr.c2
1 files changed, 1 insertions, 1 deletions
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;