util: fix bad memory access

This commit is contained in:
Lennart Poettering
2013-01-17 17:38:13 +01:00
parent 2fd9b50ce2
commit 86ed7ec58b
-1
View File
@@ -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;
}