Blame SOURCES/0016-coverity-Remove-reverse-inull-def30.patch

a6c909
From f6a8abe53b5cfe93cb08bbfa1fb5da68b2399dbf Mon Sep 17 00:00:00 2001
a6c909
From: Martin Kutlak <mkutlak@redhat.com>
a6c909
Date: Mon, 20 Aug 2018 17:12:58 +0200
a6c909
Subject: [PATCH] coverity: Remove reverse inull #def30
a6c909
a6c909
The stat_file cannot be NULL, it would already fail in xfdopen.
a6c909
a6c909
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
a6c909
---
a6c909
 src/lib/get_cmdline.c | 3 +--
a6c909
 1 file changed, 1 insertion(+), 2 deletions(-)
a6c909
a6c909
diff --git a/src/lib/get_cmdline.c b/src/lib/get_cmdline.c
a6c909
index c15fc193..83c2fb45 100644
a6c909
--- a/src/lib/get_cmdline.c
a6c909
+++ b/src/lib/get_cmdline.c
a6c909
@@ -790,8 +790,7 @@ static int get_process_ppid_at(int pid_proc_fd, pid_t *ppid)
a6c909
         r = -2;
a6c909
     }
a6c909
 
a6c909
-    if (stat_file != NULL)
a6c909
-        fclose(stat_file);
a6c909
+    fclose(stat_file);
a6c909
 
a6c909
     return r;
a6c909
 }
a6c909
-- 
a6c909
2.17.1
a6c909