[asterisk-commits] rizzo: trunk r51297 - /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jan 19 09:32:05 MST 2007


Author: rizzo
Date: Fri Jan 19 10:32:05 2007
New Revision: 51297

URL: http://svn.digium.com/view/asterisk?view=rev&rev=51297
Log:
slight change to the initialization of a structure,
also using '\0' to make it clear we need a (char)0


Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=51297&r1=51296&r2=51297
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Fri Jan 19 10:32:05 2007
@@ -1148,10 +1148,11 @@
 		int res;
 		ZT_DIAL_OPERATION zo = {
 			.op = ZT_DIAL_OP_APPEND,
-			.dialstr[0] = 'T',
-			.dialstr[1] = digit,
-			.dialstr[2] = 0,
 		};
+
+		dialstr[0] = 'T';
+		dialstr[1] = digit;
+		dialstr[2] = '\0';
 		if ((res = ioctl(pvt->subs[SUB_REAL].zfd, ZT_DIAL, &zo)))
 			ast_log(LOG_WARNING, "Couldn't dial digit %c\n", digit);
 		else



More information about the asterisk-commits mailing list