summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Blot2018-01-12 17:05:21 +0100
committerSebastien Blot2018-01-12 17:05:21 +0100
commit6effbcb5203cda0f743417bd5585942c6d5a7d08 (patch)
treec4d872a38a1729e54bf320cdc4b505aba78ec4c4 /src
parentbbee5f1baec132f8b47ae80303ce22f7d7787cd8 (diff)
do not prepend $ to the var name if there is one already
Diffstat (limited to 'src')
-rw-r--r--src/sp_config_keywords.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c
index dad538c..135868b 100644
--- a/src/sp_config_keywords.c
+++ b/src/sp_config_keywords.c
@@ -336,10 +336,10 @@ int parse_disabled_functions(char *line) {
336 } 336 }
337 337
338 if (param) { 338 if (param) {
339 if (strlen(param) > 0) { 339 if (strlen(param) > 0 && param[0] != '$') {
340 /* This is an ugly hack. We're prefixing with a `$` because otherwise 340 /* This is an ugly hack. We're prefixing with a `$` because otherwise
341 * the parser treats this as a constant. 341 * the parser treats this as a constant.
342 * FIXME: Remote this, and improve our (weird) parser. */ 342 * FIXME: Remove this, and improve our (weird) parser. */
343 char *new = pecalloc(strlen(param) + 2, 1, 1); 343 char *new = pecalloc(strlen(param) + 2, 1, 1);
344 new[0] = '$'; 344 new[0] = '$';
345 memcpy(new + 1, param, strlen(param)); 345 memcpy(new + 1, param, strlen(param));