summaryrefslogtreecommitdiff
path: root/src/bootchart
diff options
context:
space:
mode:
authorShawn Landden <shawn@churchofgit.com>2015-04-05 10:03:37 -0700
committerDaniel Mack <daniel@zonque.org>2015-04-05 21:20:23 +0200
commiteaf15609da4b0670ee3751e4b2541f15d7a83168 (patch)
treeb545636526326cc95670a93087b0bab722e78fc7 /src/bootchart
parentde9b34b6d4250056ae2c483cf22844880504bccc (diff)
bootchart: fix check for no fd
found with coverty report
Diffstat (limited to 'src/bootchart')
-rw-r--r--src/bootchart/store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootchart/store.c b/src/bootchart/store.c
index f19427e93d..f159cbafe2 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)