From 1328231c6745ad3c437b823feb60414f87683615 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 3 Jul 2008 17:24:53 +0000 Subject: [PATCH] fix pointer thing git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8891 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_xml.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch_xml.cpp b/src/switch_xml.cpp index c8d85950e8..94e49ba59b 100644 --- a/src/switch_xml.cpp +++ b/src/switch_xml.cpp @@ -1545,7 +1545,9 @@ 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 (len) { e = s + len; }