]> 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:46 +0000 (21:43 +0500)
src/include/switch_utils.h

index 55071e72d15df7992b2fc656ff9a16706e40b0db..8e768b9af428105ac483c6087b81ce6abdfd3cc7 100644 (file)
@@ -284,6 +284,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;