summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-07-25 21:58:13 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-07-25 21:58:13 +0000
commit546c742106fae0c1edf997339035dbf822c74ed1 (patch)
treef4056aa6a1aef584227ee69b6a7586f41227b853
parentb37f7ab577fa8ddfbbbc954d45a306b2fa2a4a07 (diff)
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
-rw-r--r--channels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index b5513594b..dc77f1d7c 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;