summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-11-20 19:38:58 +0300
committerGitHub <noreply@github.com>2016-11-20 19:38:58 +0300
commit270f419316758162bfead87608cbaeeb4fd6987e (patch)
tree47b8efe91c3326345d861f888ad59a38a44d502e /src/basic
parent3f59367e6fae0ba991d1e287a0f784ecdcda79af (diff)
parentcf5f9bb8402906d37cdd55e8b06da9c7b5ac06a5 (diff)
Merge pull request #4691 from keszybz/test-suite-fixes
Test suite fixes
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/process-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/process-util.c b/src/basic/process-util.c
index 48a5c719af..1f4c2e4e43 100644
--- a/src/basic/process-util.c
+++ b/src/basic/process-util.c
@@ -675,7 +675,7 @@ int getenv_for_pid(pid_t pid, const char *field, char **_value) {
}
line[i] = 0;
- if (memcmp(line, field, l) == 0 && line[l] == '=') {
+ if (strneq(line, field, l) && line[l] == '=') {
value = strdup(line + l + 1);
if (!value)
return -ENOMEM;