tweak prior commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3826 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Anthony Minessale II
2004-09-23 16:39:33 +00:00
parent ab67420c37
commit 2a896e5d3c
2 changed files with 34 additions and 11 deletions

15
app.c
View File

@@ -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);