diff --git a/src/switch_core_session.c b/src/switch_core_session.c index 17254198c1..255c123a9e 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -2294,10 +2294,10 @@ SWITCH_DECLARE(switch_core_session_t *) switch_core_session_request_uuid(switch_ session->id = session_manager.session_id++; session_manager.session_count++; - if (session_manager.session_count > runtime.sessions_peak) { + if (session_manager.session_count > (uint32_t)runtime.sessions_peak) { runtime.sessions_peak = session_manager.session_count; } - if (session_manager.session_count > runtime.sessions_peak_fivemin) { + if (session_manager.session_count > (uint32_t)runtime.sessions_peak_fivemin) { runtime.sessions_peak_fivemin = session_manager.session_count; } diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 80b099dc93..f424a4668b 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -3245,7 +3245,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_set_user_xml(switch_core_session_t *s SWITCH_DECLARE(switch_status_t) switch_ivr_set_user(switch_core_session_t *session, const char *data) { - switch_xml_t x_user; + switch_xml_t x_user = 0; char *user, *domain; switch_status_t status = SWITCH_STATUS_FALSE;