From 2c2b28694b663b9669d90d6f43c7b12ba72d0eed Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 24 Jul 2008 08:06:39 +0000 Subject: [PATCH] build tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9159 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 9f927a866e..3980d378d9 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1258,7 +1258,7 @@ static switch_status_t cmd_status(char **argv, int argc, switch_stream_handle_t } else if (!strcasecmp(argv[0], "profile")) { struct cb_helper cb; - if ((profile = sofia_glue_find_profile(argv[1]))) { + if ((argv[1]) && (profile = sofia_glue_find_profile(argv[1]))) { stream->write_function(stream, "%s\n", line); stream->write_function(stream, "Name \t\t%s\n", switch_str_nil(argv[1])); stream->write_function(stream, "Domain Name \t\t%s\n", switch_str_nil(profile->domain_name));