From: Luigi Rizzo Date: Wed, 25 Jul 2007 21:58:13 +0000 (+0000) Subject: silence a warning in ast-devmode on a potentially uninitialized var. X-Git-Tag: 1.6.0-beta1~3^2~1921 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=546c742106fae0c1edf997339035dbf822c74ed1;p=thirdparty%2Fasterisk.git silence a warning in ast-devmode on a potentially uninitialized var. At first sight (but the function is very large so i am not 100% sure) the code seems correct, so maybe my compiler is just not smart enough to figure that out at the optimization level it has. Not worthwhile merging to 1.4 i believe. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77156 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index b5513594b5..dc77f1d7c1 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -6988,7 +6988,7 @@ static int socket_process(struct iax2_thread *thread) struct iax_frame *fr; struct iax_frame *cur; struct ast_frame f = { 0, }; - struct ast_channel *c; + struct ast_channel *c = NULL; struct iax2_dpcache *dp; struct iax2_peer *peer; struct iax_ies ies;