[chan_lcr] Fixed uninitialized variable in ast_read()
authorAndreas Eversberg <jolly@eversberg.eu>
Tue, 28 Sep 2010 06:55:29 +0000 (08:55 +0200)
committerAndreas Eversberg <jolly@eversberg.eu>
Tue, 28 Sep 2010 06:56:48 +0000 (08:56 +0200)
Thanx to Martin for this bug report.

chan_lcr.c

index 877bd11..110c337 100644 (file)
@@ -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;