diff options
| author | Sebastien Blot | 2018-01-12 17:05:21 +0100 |
|---|---|---|
| committer | Sebastien Blot | 2018-01-12 17:05:21 +0100 |
| commit | 6effbcb5203cda0f743417bd5585942c6d5a7d08 (patch) | |
| tree | c4d872a38a1729e54bf320cdc4b505aba78ec4c4 /src/sp_config_keywords.c | |
| parent | bbee5f1baec132f8b47ae80303ce22f7d7787cd8 (diff) | |
do not prepend $ to the var name if there is one already
Diffstat (limited to 'src/sp_config_keywords.c')
| -rw-r--r-- | src/sp_config_keywords.c | 4 |
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)); |
