From: Shawn Landden Date: Sun, 5 Apr 2015 17:03:37 +0000 (-0700) Subject: bootchart: fix check for no fd X-Git-Tag: v220~588 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eaf15609da4b0670ee3751e4b2541f15d7a83168;p=thirdparty%2Fsystemd.git bootchart: fix check for no fd found with coverty report --- diff --git a/src/bootchart/store.c b/src/bootchart/store.c index f19427e93d6..f159cbafe2a 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)