From c3d72c05da52f61c57bc28b7b499b93f854dcbe9 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 6 Dec 2007 03:05:35 +0000 Subject: [PATCH] fail on blank string git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6533 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_portaudio/mod_portaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }