mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +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…
Reference in New Issue
Block a user