aboutsummaryrefslogtreecommitdiffstats
path: root/main/say.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/say.c')
-rw-r--r--main/say.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/say.c b/main/say.c
index 62b315899..4a649ed02 100644
--- a/main/say.c
+++ b/main/say.c
@@ -67,7 +67,7 @@ static int say_character_str_full(struct ast_channel *chan, const char *str, con
int num = 0;
int res = 0;
- while (str[num]) {
+ while (str[num] && !res) {
fn = NULL;
switch (str[num]) {
case ('*'):
@@ -142,7 +142,7 @@ static int say_phonetic_str_full(struct ast_channel *chan, const char *str, cons
int num = 0;
int res = 0;
- while (str[num]) {
+ while (str[num] && !res) {
fn = NULL;
switch (str[num]) {
case ('*'):