don't blow up if its null

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15323 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-11-02 23:28:55 +00:00
parent 5a08b02e20
commit 99f75241ce
1 changed files with 1 additions and 1 deletions

View File

@ -4451,7 +4451,7 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
moh = tmp;
}
if (!strcasecmp(moh, "silence")) {
if (moh && !strcasecmp(moh, "silence")) {
moh = NULL;
}