summaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
authorAnthony Minessale II <anthmct@yahoo.com>2004-09-23 16:39:33 +0000
committerAnthony Minessale II <anthmct@yahoo.com>2004-09-23 16:39:33 +0000
commit2a896e5d3c708078d821d8481ba1247cdbf96a23 (patch)
treec28da3c3f2354b2bbf1478f3760ea23cd264d6f3 /app.c
parentab67420c377862d2ac20242cc0c18f6f4c86ad07 (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-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);