diff --git a/src/switch_xml.cpp b/src/switch_xml.cpp index 94e49ba59b..1280733d6a 100644 --- a/src/switch_xml.cpp +++ b/src/switch_xml.cpp @@ -1546,7 +1546,7 @@ static char *switch_xml_ampencode(const char *s, switch_size_t len, char **dst, const char *e = NULL; int immune = 0; - if (!s && *s) return *dst; + if (!(s && *s)) return *dst; if (len) { e = s + len;