aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rwxr-xr-xfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index f0bea5465..11b12bffc 100755
--- a/file.c
+++ b/file.c
@@ -871,6 +871,7 @@ char ast_waitstream(struct ast_channel *c, char *breakon)
/* XXX Maybe I should just front-end ast_waitstream_full ? XXX */
int res;
struct ast_frame *fr;
+ if (!breakon) breakon = "";
while(c->stream) {
res = ast_sched_wait(c->sched);
if ((res < 0) && !c->timingfunc) {