FS-3194 see comitted patch. I made the function assert rather than tolerate NULL and fixed the imporper usage.

This commit is contained in:
Anthony Minessale
2011-03-28 09:49:48 -05:00
parent 7bee6d3d77
commit 484a397d88
2 changed files with 9 additions and 1 deletions
+5 -1
View File
@@ -151,7 +151,11 @@ static inline char *switch_strchr_strict(const char *in, char find, const char *
#endif
static inline int switch_string_has_escaped_data(const char *in)
{
const char *i = strchr(in, '\\');
const char *i;
switch_assert(in);
i = strchr(in, '\\');
while (i && *i == '\\') {
i++;