From f79ea715d7ca267b1c38882c2fbfa0d9f46d0377 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 23 Sep 2008 15:58:44 +0000 Subject: [PATCH] (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 --- libs/openzap/src/zap_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/openzap/src/zap_config.c b/libs/openzap/src/zap_config.c index f27fa04621..cce3507f25 100644 --- a/libs/openzap/src/zap_config.c +++ b/libs/openzap/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) {