summaryrefslogtreecommitdiff
path: root/src/shared/fileio.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-07 12:04:55 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-07 15:25:55 +0200
commit6294aa76d818e831de4592b41a37e225fd0871f9 (patch)
treeddf0aa3a760fbe4dc1126d4fd872e0d525203197 /src/shared/fileio.c
parent7568345034f2890af745747783c5abfbf6eccf0f (diff)
util: don't consider tabs special in string_has_cc() anymore
Instead, take a list of exceptions to our usual CC check
Diffstat (limited to 'src/shared/fileio.c')
-rw-r--r--src/shared/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/fileio.c b/src/shared/fileio.c
index fb1c1bcf9f..b1de5908c5 100644
--- a/src/shared/fileio.c
+++ b/src/shared/fileio.c
@@ -738,7 +738,7 @@ static void write_env_var(FILE *f, const char *v) {
p++;
fwrite(v, 1, p-v, f);
- if (string_has_cc(p) || chars_intersect(p, WHITESPACE "\'\"\\`$")) {
+ if (string_has_cc(p, NULL) || chars_intersect(p, WHITESPACE "\'\"\\`$")) {
fputc('\"', f);
for (; *p; p++) {