mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
bootchart: fix check for no fd
found with coverty report
This commit is contained in:
parent
de9b34b6d4
commit
eaf15609da
@ -476,7 +476,7 @@ catch_rename:
|
||||
|
||||
/* re-fetch name */
|
||||
/* get name, start time */
|
||||
if (!ps->sched) {
|
||||
if (ps->sched < 0) {
|
||||
sprintf(filename, "%d/sched", pid);
|
||||
ps->sched = openat(procfd, filename, O_RDONLY|O_CLOEXEC);
|
||||
if (ps->sched < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user