[asterisk-commits] file: branch 1.4 r61651 -
/branches/1.4/apps/app_speech_utils.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Apr 13 11:08:03 MST 2007
Author: file
Date: Fri Apr 13 13:08:02 2007
New Revision: 61651
URL: http://svn.digium.com/view/asterisk?view=rev&rev=61651
Log:
Do not bother looking for a result if none are present.
Modified:
branches/1.4/apps/app_speech_utils.c
Modified: branches/1.4/apps/app_speech_utils.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_speech_utils.c?view=diff&rev=61651&r1=61650&r2=61651
==============================================================================
--- branches/1.4/apps/app_speech_utils.c (original)
+++ branches/1.4/apps/app_speech_utils.c Fri Apr 13 13:08:02 2007
@@ -132,6 +132,9 @@
struct ast_speech_result *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';
More information about the asterisk-commits
mailing list