[mod_sofia] scan-build in sofia_glue_do_invite(): Null pointer passed as an argument to a 'nonnull' parameter
This commit is contained in:
parent
97930570dc
commit
4aa1c1736f
|
@ -1211,7 +1211,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
|
|||
}
|
||||
|
||||
sofia_glue_get_url_from_contact(rpid_domain, 0);
|
||||
if ((rpid_domain = strrchr(rpid_domain, '@'))) {
|
||||
if (rpid_domain && (rpid_domain = strrchr(rpid_domain, '@'))) {
|
||||
rpid_domain++;
|
||||
if ((p = strchr(rpid_domain, ';'))) {
|
||||
*p = '\0';
|
||||
|
|
Loading…
Reference in New Issue