summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-16 01:57:59 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-16 01:57:59 +0200
commite7db37dd19d540e9ac8b89c689914d44d15433c4 (patch)
tree616bec06ae4645403b0d2777bdc61cd6fb6db1b4 /src
parent72bca11ba2bcaadd9c6188e97e6d5834b4115002 (diff)
util: fix handling of quotes in parse_env_file()
Diffstat (limited to 'src')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 47da11c1b8..c1ee936aaf 100644
--- a/src/util.c
+++ b/src/util.c
@@ -641,8 +641,8 @@ int parse_env_file(
n = strcspn(p, seperator);
if (n >= 2 &&
- strchr(QUOTES, v[0]) &&
- v[n-1] == v[0])
+ strchr(QUOTES, p[0]) &&
+ p[n-1] == p[0])
v = strndup(p+1, n-2);
else
v = strndup(p, n);