]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a problem where saying a character wouldn't properly break out when the caller...
authorRussell Bryant <russell@russellbryant.com>
Thu, 7 Jun 2007 23:13:33 +0000 (23:13 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 7 Jun 2007 23:13:33 +0000 (23:13 +0000)
(issue #8113, reported by patbaker82, patch from jamesgolovich (hey, long time no see!) and patbaker82)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68351 65c4cc65-6c06-0410-ace0-fbb531ad65f3

say.c

diff --git a/say.c b/say.c
index 077a057a357ca5fa415bd9caec71a588c6bd642f..459e181c988c695dc9bfc6907e2d7fa884a8dc95 100644 (file)
--- a/say.c
+++ b/say.c
@@ -62,7 +62,7 @@ int ast_say_character_str_full(struct ast_channel *chan, const char *str, const
        int num = 0;
        int res = 0;
 
-       while (str[num]) {
+       while (str[num] && !res) {
                fn = NULL;
                switch (str[num]) {
                case ('*'):
@@ -142,7 +142,7 @@ int ast_say_phonetic_str_full(struct ast_channel *chan, const char *str, const c
        int num = 0;
        int res = 0;
 
-       while (str[num]) {
+       while (str[num] && !res) {
                fn = NULL;
                switch (str[num]) {
                case ('*'):