mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user