mirror of
https://github.com/systemd/systemd.git
synced 2025-08-30 05:49:54 +03:00
util: fix bad memory access
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user