contact->m_url is an array, don't check array for zero as its useless

This commit is contained in:
Michael Jerris 2014-04-26 15:35:27 -04:00
parent 96c6abbe69
commit abd7882d18
1 changed files with 1 additions and 1 deletions

View File

@ -1274,7 +1274,7 @@ uint8_t sofia_reg_handle_register_token(nua_t *nua, sofia_profile_t *profile, nu
sub_host = to_host;
}
if (contact && contact->m_url) {
if (contact) {
const char *port = contact->m_url->url_port;
char new_port[25] = "";
const char *contact_host = contact->m_url->url_host;