aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-13 18:09:29 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-13 18:09:29 +0000
commit3ef46b6a1cc4d2a468834ba2b36181306928eff7 (patch)
tree8971d73bb3d88d574a88f2fb53a64209b7034b41 /apps/app_speech_utils.c
parent034ba870385ecce03fb3ed82a2566b48a4417dfc (diff)
Merged revisions 61651 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r61651 | file | 2007-04-13 14:08:02 -0400 (Fri, 13 Apr 2007) | 2 lines Do not bother looking for a result if none are present. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61652 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r--apps/app_speech_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index 4517bbb3b..100b174d9 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -133,6 +133,9 @@ static struct ast_speech_result *find_result(struct ast_speech_result *results,
char *tmp = NULL;
int nbest_num = 0, wanted_num = 0, i = 0;
+ if (!result)
+ return NULL;
+
if ((tmp = strchr(result_num, '/'))) {
*tmp++ = '\0';
nbest_num = atoi(result_num);