Fix issue with say digit str (bug #4883)
authorMark Spencer <markster@digium.com>
Wed, 3 Aug 2005 04:23:58 +0000 (04:23 +0000)
committerMark Spencer <markster@digium.com>
Wed, 3 Aug 2005 04:23:58 +0000 (04:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6265 65c4cc65-6c06-0410-ace0-fbb531ad65f3

say.c

diff --git a/say.c b/say.c
index 4ea7595..b98561c 100755 (executable)
--- a/say.c
+++ b/say.c
@@ -209,7 +209,7 @@ int ast_say_digit_str_full(struct ast_channel *chan, const char *str, const char
        int num = 0;
        int res = 0;
 
-       while (str[num]) {
+       while (str[num] && !res) {
                fn = NULL;
                switch (str[num]) {
                case ('*'):