[Freeswitch-svn] [commit] r8066 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Wed Apr 9 15:15:40 EDT 2008


Author: mikej
Date: Wed Apr  9 15:15:38 2008
New Revision: 8066

Modified:
   freeswitch/trunk/src/switch_ivr_menu.c

Log:
build tweak

Modified: freeswitch/trunk/src/switch_ivr_menu.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_menu.c	(original)
+++ freeswitch/trunk/src/switch_ivr_menu.c	Wed Apr  9 15:15:38 2008
@@ -316,11 +316,11 @@
 					
 					switch_ivr_phrase_macro(session, menu->confirm_macro, menu->buf, NULL, ap);
 
-					if (menu->confirm_key && switch_strlen_zero(buf)) {
+					if (menu->confirm_key && *buf == '\0') {
 						switch_ivr_collect_digits_count(session, buf, sizeof(buf), 1, "#", &terminator_key, menu->timeout, 0, 0);
 					}
 
-					if (menu->confirm_key && !switch_strlen_zero(buf)) {
+					if (menu->confirm_key && *buf != '\0') {
 						if (*menu->confirm_key == *buf) {
 							switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, 
 											  "approving digits '%s' via confirm key %s\n", menu->buf, menu->confirm_key);



More information about the Freeswitch-svn mailing list