Merge "main/app: Only look to end of file if ':end' is specified, and not just ':'"
authorJoshua Colp <jcolp@digium.com>
Wed, 23 Mar 2016 21:52:05 +0000 (16:52 -0500)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Wed, 23 Mar 2016 21:52:06 +0000 (16:52 -0500)
main/app.c

index 826e411..e1d7049 100644 (file)
@@ -1112,6 +1112,8 @@ static int control_streamfile(struct ast_channel *chan,
                if (!strcasecmp(end, ":end")) {
                        *end = '\0';
                        end++;
+               } else {
+                       end = NULL;
                }
        }