[asterisk-commits] russell: trunk r67779 - /trunk/channels/chan_iax2.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jun 6 11:47:58 MST 2007


Author: russell
Date: Wed Jun  6 13:47:58 2007
New Revision: 67779

URL: http://svn.digium.com/view/asterisk?view=rev&rev=67779
Log:
Make another small tweak ... mantis/svn testing
(issue #9828)

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=67779&r1=67778&r2=67779
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Wed Jun  6 13:47:58 2007
@@ -3439,7 +3439,7 @@
 static int iax2_transfer(struct ast_channel *c, const char *dest)
 {
 	unsigned short callno = PTR_TO_CALLNO(c->tech_pvt);
-	struct iax_ie_data ied;
+	struct iax_ie_data ied = { "", };
 	char tmp[256], *context;
 	ast_copy_string(tmp, dest, sizeof(tmp));
 	context = strchr(tmp, '@');
@@ -3447,7 +3447,6 @@
 		*context = '\0';
 		context++;
 	}
-	memset(&ied, 0, sizeof(ied));
 	iax_ie_append_str(&ied, IAX_IE_CALLED_NUMBER, tmp);
 	if (context)
 		iax_ie_append_str(&ied, IAX_IE_CALLED_CONTEXT, context);



More information about the asterisk-commits mailing list