From: Lennart Poettering Date: Wed, 15 Sep 2010 23:57:59 +0000 (+0200) Subject: util: fix handling of quotes in parse_env_file() X-Git-Tag: v11~136 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=e7db37dd19d540e9ac8b89c689914d44d15433c4 util: fix handling of quotes in parse_env_file() --- diff --git a/src/util.c b/src/util.c index 47da11c1b..c1ee936aa 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);