summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/special-vars.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/special-vars.c b/src/core/special-vars.c
index 4490139f..4f68bc53 100644
--- a/src/core/special-vars.c
+++ b/src/core/special-vars.c
@@ -496,12 +496,7 @@ char *parse_special_string(const char *cmd, SERVER_REC *server, void *item,
g_string_append_c(str, ';');
else {
chr = expand_escape(&cmd);
- if (chr != -1)
- g_string_append_c(str, chr);
- else {
- g_string_append_c(str, '\\');
- g_string_append_c(str, *cmd);
- }
+ g_string_append_c(str, chr != -1 ? chr : *cmd);
}
code = 0;
} else if (code == '$') {