[Freeswitch-svn] [commit] r6533 - freeswitch/trunk/src/mod/endpoints/mod_portaudio

Freeswitch SVN mikej at freeswitch.org
Wed Dec 5 22:05:35 EST 2007


Author: mikej
Date: Wed Dec  5 22:05:35 2007
New Revision: 6533

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c

Log:
fail on blank string

Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c	Wed Dec  5 22:05:35 2007
@@ -1556,7 +1556,7 @@
 	switch_status_t status = SWITCH_STATUS_SUCCESS;
 	char *dest = NULL;
 
-	if (!argv[0]) {
+	if (switch_strlen_zero(argv[0])) {
 		stream->write_function(stream, "FAIL:Usage: call <dest>\n");
 		return SWITCH_STATUS_SUCCESS;
 	}



More information about the Freeswitch-svn mailing list