From 9400e87db0e18d1f9da6bcce233fe22d45fc6f15 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 14 Jun 2005 21:07:48 +0000 Subject: [PATCH] remove pointless dereference (bug #4353) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5914 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- app.c | 2 +- apps/app_controlplayback.c | 15 +++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/app.c b/app.c index 5653cf1672..bccac6915c 100755 --- a/app.c +++ b/app.c @@ -278,7 +278,7 @@ int ast_dtmf_stream(struct ast_channel *chan,struct ast_channel *peer,char *digi if (!res) { res = ast_waitfor(chan,100); if (res > -1) { - for (ptr=digits;*ptr;*ptr++) { + for (ptr=digits; *ptr; ptr++) { if (*ptr == 'w') { res = ast_safe_sleep(chan, 500); if (res) diff --git a/apps/app_controlplayback.c b/apps/app_controlplayback.c index b44eafba96..aa6dd34356 100755 --- a/apps/app_controlplayback.c +++ b/apps/app_controlplayback.c @@ -64,24 +64,19 @@ static int controlplayback_exec(struct ast_channel *chan, void *data) file = tmp; if ((skip=strchr(tmp,'|'))) { - *skip = '\0'; - *skip++; + *skip++ = '\0'; fwd=strchr(skip,'|'); if (fwd) { - *fwd = '\0'; - *fwd++; + *fwd++ = '\0'; rev = strchr(fwd,'|'); if (rev) { - *rev = '\0'; - *rev++; + *rev++ = '\0'; stop = strchr(rev,'|'); if (stop) { - *stop = '\0'; - *stop++; + *stop++ = '\0'; pause = strchr(stop,'|'); if (pause) { - *pause = '\0'; - *pause++; + *pause++ = '\0'; } } } -- 2.47.2