aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_console.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-21 21:11:58 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-21 21:11:58 +0000
commit9e213bacf9f23925a5bbccb0b639c76fc7361b19 (patch)
treead90cc31d7df58f11cad0a9cd4b7f8fbb58b685c /channels/chan_console.c
parentf68cf2ef9a1cf45e6c29ff2b3d98c85d7b530b18 (diff)
Remove compiler warning for uninitialized variable
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@99384 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_console.c')
-rw-r--r--channels/chan_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_console.c b/channels/chan_console.c
index cd6170e98..c558f5b1d 100644
--- a/channels/chan_console.c
+++ b/channels/chan_console.c
@@ -1321,7 +1321,7 @@ static void build_device(struct ast_config *cfg, const char *name)
{
struct ast_variable *v;
struct console_pvt *pvt;
- int new;
+ int new = 0;
if ((pvt = find_pvt(name))) {
console_pvt_lock(pvt);