From: Michael Jerris Date: Tue, 23 Sep 2008 15:58:44 +0000 (+0000) Subject: (OPENZAP-17) make # not a special char in config files now. X-Git-Tag: v1.0.6~38^3~369 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35fbef437398e1c5c9e3930a334b6c5fffacb793;p=thirdparty%2Ffreeswitch.git (OPENZAP-17) make # not a special char in config files now. git-svn-id: http://svn.openzap.org/svn/openzap/trunk@562 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/freetdm/src/zap_config.c b/libs/freetdm/src/zap_config.c index f27fa04621..cce3507f25 100644 --- a/libs/freetdm/src/zap_config.c +++ b/libs/freetdm/src/zap_config.c @@ -157,7 +157,7 @@ int zap_config_next_pair(zap_config_t *cfg, char **var, char **val) } - if (((end = strchr(*var, '#')) || (end = strchr(*var, ';'))) && *(end+1) == *end) { + if ((end = strchr(*var, ';')) && *(end+1) == *end) { *end = '\0'; end--; } else if ((end = strchr(*var, '\n')) != 0) {