From: Michael Jerris Date: Thu, 24 Jul 2008 08:06:39 +0000 (+0000) Subject: build tweak X-Git-Tag: v1.0.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c2b28694b663b9669d90d6f43c7b12ba72d0eed;p=thirdparty%2Ffreeswitch.git build tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9159 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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));