diff options
Diffstat (limited to 'app.c')
-rwxr-xr-x | app.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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); |