]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
missing zset
authorBrian West <brian@freeswitch.org>
Sun, 31 Mar 2013 00:55:55 +0000 (19:55 -0500)
committerBrian West <brian@freeswitch.org>
Sun, 31 Mar 2013 00:55:55 +0000 (19:55 -0500)
src/include/switch_utils.h

index f547df624af29ee6c9d24feceb9dfe5a7cb95c82..11a4cdc38e5a54671dce364b2950186633882b7b 100644 (file)
@@ -266,6 +266,10 @@ static inline switch_bool_t switch_is_moh(const char *s)
        return SWITCH_TRUE;
 }
 
+
+#define zset(_a, _b) if (!zstr(_b)) _a = _b
+
+
 /* find a character (find) in a string (in) and return a pointer to that point in the string where the character was found 
    using the array (allowed) as allowed non-matching characters, when (allowed) is NULL, behaviour should be identical to strchr()
  */