mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
util: fix bad memory access
This commit is contained in:
parent
2fd9b50ce2
commit
86ed7ec58b
@ -439,7 +439,6 @@ int get_parent_of_pid(pid_t pid, pid_t *_ppid) {
|
||||
|
||||
if (!fgets(line, sizeof(line), f)) {
|
||||
r = feof(f) ? -EIO : -errno;
|
||||
fclose(f);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user