[asterisk-commits] file: trunk r61652 - in /trunk: ./ apps/app_speech_utils.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Apr 13 11:09:30 MST 2007


Author: file
Date: Fri Apr 13 13:09:29 2007
New Revision: 61652

URL: http://svn.digium.com/view/asterisk?view=rev&rev=61652
Log:
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.

........

Modified:
    trunk/   (props changed)
    trunk/apps/app_speech_utils.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/apps/app_speech_utils.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_speech_utils.c?view=diff&rev=61652&r1=61651&r2=61652
==============================================================================
--- trunk/apps/app_speech_utils.c (original)
+++ trunk/apps/app_speech_utils.c Fri Apr 13 13:09:29 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