summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-01-19 16:32:05 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-01-19 16:32:05 +0000
commit03fc21712a526061d4ddbb4b8e3b4b6caccdc23f (patch)
treea8d2759379bb3bd0ef4f0e800789a6462d9b8e14 /channels/chan_zap.c
parent606ee0dab40a8cd61cc1c5d2f26e0de0c8d92418 (diff)
slight change to the initialization of a structure,
also using '\0' to make it clear we need a (char)0 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index fefb0b9fd..8c5f25d23 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -1148,10 +1148,11 @@ static int zt_digit_begin(struct ast_channel *chan, char digit)
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