[systemd-commits] src/bootchart
Daniel Mack
zonque at kemper.freedesktop.org
Sun Apr 5 12:20:35 PDT 2015
src/bootchart/store.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit eaf15609da4b0670ee3751e4b2541f15d7a83168
Author: Shawn Landden <shawn at churchofgit.com>
Date: Sun Apr 5 10:03:37 2015 -0700
bootchart: fix check for no fd
found with coverty report
diff --git a/src/bootchart/store.c b/src/bootchart/store.c
index f19427e..f159cba 100644
--- a/src/bootchart/store.c
+++ b/src/bootchart/store.c
@@ -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)
More information about the systemd-commits
mailing list