fix init issue

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10925 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-12-23 19:47:50 +00:00
parent d45f5bbd50
commit 772f957064
2 changed files with 5 additions and 1 deletions

View File

@ -1394,7 +1394,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co
const char *a1_hash = NULL;
char *sql;
char *mailbox = NULL;
switch_xml_t domain, xml = NULL, user, param, uparams, dparams, group, gparams = NULL;
switch_xml_t domain, xml = NULL, user, param, uparams, dparams, group = NULL, gparams = NULL;
char hexdigest[2 * SU_MD5_DIGEST_SIZE + 1] = "";
char *domain_name = NULL;
switch_event_t *params = NULL;

View File

@ -1689,6 +1689,10 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate_user(const char *key,
*user = NULL;
*domain = NULL;
if (ingroup) {
*ingroup = NULL;
}
if (!params) {
switch_event_create(&my_params, SWITCH_EVENT_REQUEST_PARAMS);
switch_assert(my_params);