From: Michael Jerris Date: Thu, 6 Dec 2007 03:05:35 +0000 (+0000) Subject: fail on blank string X-Git-Tag: v1.0-rc1~1290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3d72c05da52f61c57bc28b7b499b93f854dcbe9;p=thirdparty%2Ffreeswitch.git fail on blank string git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6533 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index 413ddd0765..b21d91df42 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -1556,7 +1556,7 @@ static switch_status_t place_call(char **argv, int argc, switch_stream_handle_t 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 \n"); return SWITCH_STATUS_SUCCESS; }