don't blow up if its null
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-11-02 23:28:55 UTC (rev 15323)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-11-02 23:31:08 UTC (rev 15324)
@@ -4451,7 +4451,7 @@
moh = tmp;
}
- if (moh && !strcasecmp(moh, "silence")) {
+ if (!zstr(moh) && !strcasecmp(moh, "silence")) {
moh = NULL;
}