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