Merge pull request #4691 from keszybz/test-suite-fixes
Test suite fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user