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

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