[commit] r9159 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: mikej Date: Thu Jul 24 04:06:39 2008 New Revision: 9159 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Log: build tweak Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c Thu Jul 24 04:06:39 2008 @@ -1258,7 +1258,7 @@ } 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));
participants (1)
-
Freeswitch SVN