]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove compiler warning for uninitialized variable
authorOlle Johansson <oej@edvina.net>
Mon, 21 Jan 2008 21:11:58 +0000 (21:11 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 21 Jan 2008 21:11:58 +0000 (21:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@99384 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_console.c

index cd6170e98f5a4b8b25ad78defca0c9dcf6549c6f..c558f5b1db992ca0303ea32fa76da7ae436d6df1 100644 (file)
@@ -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);