diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-14 21:07:48 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-14 21:07:48 +0000 |
commit | 0bfe0ab462fb225036e78350c41c3280686215c8 (patch) | |
tree | c24d2d218a5dbbda76a6b2360c7d1890249c0ac3 /apps/app_controlplayback.c | |
parent | bae48b2eb0e2a894a5fc39b592be289f49a1141f (diff) |
remove pointless dereference (bug #4353)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@5914 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_controlplayback.c')
-rwxr-xr-x | apps/app_controlplayback.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/apps/app_controlplayback.c b/apps/app_controlplayback.c index b44eafba9..aa6dd3435 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'; } } } |