Detected by cppcheck. Signed-off-by: Thomas Jarosch <thomas.jaro...@intra2net.com> --- src/condition.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/condition.c b/src/condition.c index f18c454..2b51a16 100644 --- a/src/condition.c +++ b/src/condition.c @@ -187,6 +187,8 @@ static bool test_capability(const char *parameter) { } } + fclose(f); + return !!(capabilities & (1ULL << value)); } -- 1.7.4.4 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel