]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
remove pointless dereference (bug #4353)
authorRussell Bryant <russell@russellbryant.com>
Tue, 14 Jun 2005 21:07:48 +0000 (21:07 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 14 Jun 2005 21:07:48 +0000 (21:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5914 65c4cc65-6c06-0410-ace0-fbb531ad65f3

app.c
apps/app_controlplayback.c

diff --git a/app.c b/app.c
index 5653cf1672c622f2f1d94517cd60d3b5d4c4196f..bccac6915c01c7dd40e76a83a034fb409145286e 100755 (executable)
--- 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) 
index b44eafba96babf1d5c98dd378e8b9b7e30a93acb..aa6dd34356193e354748d9479101fa4c36317e4d 100755 (executable)
@@ -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';
                                        }
                                }
                        }