mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-3194 see comitted patch. I made the function assert rather than tolerate NULL and fixed the imporper usage.
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user