dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0192-ipa_selinux-Fix-warning-may-be-used-uninitialized.patch

b725e7
From 448d1e38c9e97ba67041692dc03724e14bd3421a Mon Sep 17 00:00:00 2001
b725e7
From: Lukas Slebodnik <lslebodn@redhat.com>
b725e7
Date: Fri, 13 Mar 2015 12:38:29 +0100
b725e7
Subject: [PATCH 192/193] ipa_selinux: Fix warning may be used uninitialized
b725e7
b725e7
src/providers/ipa/ipa_selinux.c: In function 'ipa_selinux_handler_done':
b725e7
src/providers/ipa/ipa_selinux.c:927:16: error: 'sci' may be used uninitialized in this function [-Werror=maybe-uninitialized]
b725e7
     state->sci = sci;
b725e7
                ^
b725e7
src/providers/ipa/ipa_selinux.c:333:33: note: 'sci' was declared here
b725e7
     struct selinux_child_input *sci;
b725e7
                                 ^
b725e7
cc1: all warnings being treated as errors
b725e7
b725e7
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
b725e7
(cherry picked from commit befd8f4639ecef8185e82092beae801d68fa7eae)
b725e7
---
b725e7
 src/providers/ipa/ipa_selinux.c | 2 +-
b725e7
 1 file changed, 1 insertion(+), 1 deletion(-)
b725e7
b725e7
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c
b725e7
index 1172424cb3f6df06e6ecaa8914427f8f945a7251..0716536cdb3b34d386ed1a31e6a239a09173b25b 100644
b725e7
--- a/src/providers/ipa/ipa_selinux.c
b725e7
+++ b/src/providers/ipa/ipa_selinux.c
b725e7
@@ -330,7 +330,7 @@ static void ipa_selinux_handler_done(struct tevent_req *req)
b725e7
     struct sysdb_attrs **hbac_rules = 0;
b725e7
     struct sysdb_attrs **best_match_maps;
b725e7
     struct map_order_ctx *map_order_ctx;
b725e7
-    struct selinux_child_input *sci;
b725e7
+    struct selinux_child_input *sci = NULL;
b725e7
     struct tevent_req *child_req;
b725e7
 
b725e7
     ret = ipa_get_selinux_recv(req, breq, &map_count, &maps,
b725e7
-- 
b725e7
2.1.0
b725e7