summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-03-13 12:38:29 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-03-17 15:43:31 +0100
commitdee33456b4e1b32be7a54cfce470736932406360 (patch)
tree490588863f0ff5cdb91ef0247b08381bfb7712ea
parent2f5e98df40bce0cfcac728bac6d81149528c7bcc (diff)
downloadsssd-dee33456b4e1b32be7a54cfce470736932406360.tar.gz
sssd-dee33456b4e1b32be7a54cfce470736932406360.tar.xz
sssd-dee33456b4e1b32be7a54cfce470736932406360.zip
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>
-rw-r--r--src/providers/ipa/ipa_selinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c
index 00c793a26..19bda3c46 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,