diff --git a/src/switch_xml.cpp b/src/switch_xml.cpp index 9ae0a16f77..dc486ee24b 100644 --- a/src/switch_xml.cpp +++ b/src/switch_xml.cpp @@ -1758,7 +1758,7 @@ SWITCH_DECLARE(const char *) switch_xml_error(switch_xml_t xml) // returns a new empty switch_xml structure with the given root tag name SWITCH_DECLARE(switch_xml_t) switch_xml_new(const char *name) { - static char *ent[] = { "lt;", "<", "gt;", ">", "quot;", """, + static const char *ent[] = { "lt;", "<", "gt;", ">", "quot;", """, "apos;", "'", "amp;", "&", NULL }; switch_xml_root_t root = (switch_xml_root_t) memset(malloc(sizeof(struct switch_xml_root)),