[asterisk-commits] rizzo: trunk r77156 - /trunk/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 25 16:58:14 CDT 2007


Author: rizzo
Date: Wed Jul 25 16:58:13 2007
New Revision: 77156

URL: http://svn.digium.com/view/asterisk?view=rev&rev=77156
Log:
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.


Modified:
    trunk/channels/chan_iax2.c

Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=77156&r1=77155&r2=77156
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Wed Jul 25 16:58:13 2007
@@ -6988,7 +6988,7 @@
 	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;




More information about the asterisk-commits mailing list