]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6289 --resolve regression from 1fba654845c8202bf84c58b203a3bc9624164c4e
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 28 Feb 2014 16:43:38 +0000 (21:43 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 28 Feb 2014 16:43:57 +0000 (21:43 +0500)
src/include/switch_utils.h

index 24b8765fafb267180272ff06255c4a82a255c591..7d0c1511302af8939f8b040593b05329f9a014f7 100644 (file)
@@ -281,6 +281,8 @@ static inline char *switch_strchr_strict(const char *in, char find, const char *
 
        p = in;
 
+       if (!*p) return NULL;
+
        while(p && *p) {
                const char *a = allowed;
                int acceptable = 0;