aboutsummaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
authoranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-23 16:39:33 +0000
committeranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-23 16:39:33 +0000
commit45ca34593892bb1752efb92ba50e1e4bf6ae7430 (patch)
treec28da3c3f2354b2bbf1478f3760ea23cd264d6f3 /app.c
parent0caf04921039d80f314e3b2a6b8bb006c62a7d1c (diff)
tweak prior commit
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3826 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'app.c')
-rwxr-xr-xapp.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/app.c b/app.c
index d602de058..b273f4c3c 100755
--- a/app.c
+++ b/app.c
@@ -437,13 +437,16 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char
if (chan)
ast_stopstream(chan);
- if (file) {
- end = strchr(file,':');
- if (!strcasecmp(end,":end")) {
- *end = '\0';
- end++;
+
+ if(file) {
+ if((end = strchr(file,':'))) {
+ if(!strcasecmp(end,":end")) {
+ *end = '\0';
+ end++;
+ }
}
- }
+ }
+
for (;;) {
gettimeofday(&started,NULL);