summaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
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);