mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
remove pointless dereference (bug #4353)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5914 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
app.c
2
app.c
@@ -278,7 +278,7 @@ int ast_dtmf_stream(struct ast_channel *chan,struct ast_channel *peer,char *digi
|
|||||||
if (!res) {
|
if (!res) {
|
||||||
res = ast_waitfor(chan,100);
|
res = ast_waitfor(chan,100);
|
||||||
if (res > -1) {
|
if (res > -1) {
|
||||||
for (ptr=digits;*ptr;*ptr++) {
|
for (ptr=digits; *ptr; ptr++) {
|
||||||
if (*ptr == 'w') {
|
if (*ptr == 'w') {
|
||||||
res = ast_safe_sleep(chan, 500);
|
res = ast_safe_sleep(chan, 500);
|
||||||
if (res)
|
if (res)
|
||||||
|
@@ -64,24 +64,19 @@ static int controlplayback_exec(struct ast_channel *chan, void *data)
|
|||||||
file = tmp;
|
file = tmp;
|
||||||
|
|
||||||
if ((skip=strchr(tmp,'|'))) {
|
if ((skip=strchr(tmp,'|'))) {
|
||||||
*skip = '\0';
|
*skip++ = '\0';
|
||||||
*skip++;
|
|
||||||
fwd=strchr(skip,'|');
|
fwd=strchr(skip,'|');
|
||||||
if (fwd) {
|
if (fwd) {
|
||||||
*fwd = '\0';
|
*fwd++ = '\0';
|
||||||
*fwd++;
|
|
||||||
rev = strchr(fwd,'|');
|
rev = strchr(fwd,'|');
|
||||||
if (rev) {
|
if (rev) {
|
||||||
*rev = '\0';
|
*rev++ = '\0';
|
||||||
*rev++;
|
|
||||||
stop = strchr(rev,'|');
|
stop = strchr(rev,'|');
|
||||||
if (stop) {
|
if (stop) {
|
||||||
*stop = '\0';
|
*stop++ = '\0';
|
||||||
*stop++;
|
|
||||||
pause = strchr(stop,'|');
|
pause = strchr(stop,'|');
|
||||||
if (pause) {
|
if (pause) {
|
||||||
*pause = '\0';
|
*pause++ = '\0';
|
||||||
*pause++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user