diff options
author | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-23 16:39:33 +0000 |
---|---|---|
committer | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-23 16:39:33 +0000 |
commit | 45ca34593892bb1752efb92ba50e1e4bf6ae7430 (patch) | |
tree | c28da3c3f2354b2bbf1478f3760ea23cd264d6f3 /app.c | |
parent | 0caf04921039d80f314e3b2a6b8bb006c62a7d1c (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-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); |