diff options
author | Anthony Minessale II <anthmct@yahoo.com> | 2004-09-23 16:39:33 +0000 |
---|---|---|
committer | Anthony Minessale II <anthmct@yahoo.com> | 2004-09-23 16:39:33 +0000 |
commit | 2a896e5d3c708078d821d8481ba1247cdbf96a23 (patch) | |
tree | c28da3c3f2354b2bbf1478f3760ea23cd264d6f3 /app.c | |
parent | ab67420c377862d2ac20242cc0c18f6f4c86ad07 (diff) |
tweak prior commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3826 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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); |