mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 05:32:02 +00: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