diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2015-03-13 12:38:29 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-17 11:46:16 +0100 |
commit | 0df2970fe147fb7b130d825c16097c2322f21905 (patch) | |
tree | 66795a53e0a76408544bd013de5adcd24167a80f | |
parent | 7ee9ac32485483beece872d6fcb3096fa77a004b (diff) | |
download | sssd-0df2970fe147fb7b130d825c16097c2322f21905.tar.gz sssd-0df2970fe147fb7b130d825c16097c2322f21905.tar.xz sssd-0df2970fe147fb7b130d825c16097c2322f21905.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c index 50ff84056..aa53769e3 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, |