Merge pull request #4691 from keszybz/test-suite-fixes

Test suite fixes
This commit is contained in:
Evgeny Vereshchagin
2016-11-20 19:38:58 +03:00
committed by GitHub
4 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -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;