If breakon is unspecified, make it ""
authorMark Spencer <markster@digium.com>
Thu, 15 Jul 2004 14:37:09 +0000 (14:37 +0000)
committerMark Spencer <markster@digium.com>
Thu, 15 Jul 2004 14:37:09 +0000 (14:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3441 65c4cc65-6c06-0410-ace0-fbb531ad65f3

file.c

diff --git a/file.c b/file.c
index f0bea54..11b12bf 100755 (executable)
--- 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) {