[Freeswitch-svn] [commit] r1773 - freeswitch/trunk/src/mod/applications/mod_rss

Freeswitch SVN anthm at freeswitch.org
Thu Jul 6 18:12:15 EDT 2006


Author: anthm
Date: Thu Jul  6 18:12:15 2006
New Revision: 1773

Modified:
   freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c

Log:
fix segfault

Modified: freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c	Thu Jul  6 18:12:15 2006
@@ -602,15 +602,17 @@
 						cont = 0;
 						continue;
 					}
-
-					status = switch_ivr_speak_text_handle(session,
-														  &sh,
-														  &speech_codec,
-														  timerp,
-														  on_dtmf,
-														  entries[dtb.index].description_txt,
-														  &dtb,
-														  sizeof(dtb));
+					
+					if (entries[dtb.index].description_txt) {
+						status = switch_ivr_speak_text_handle(session,
+															  &sh,
+															  &speech_codec,
+															  timerp,
+															  on_dtmf,
+															  entries[dtb.index].description_txt,
+															  &dtb,
+															  sizeof(dtb));
+					}
 					if (status == SWITCH_STATUS_BREAK) {
 						continue;
 					} else if (status != SWITCH_STATUS_SUCCESS) {



More information about the Freeswitch-svn mailing list