diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2015-03-13 12:38:29 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-17 15:42:38 +0100 |
commit | 448d1e38c9e97ba67041692dc03724e14bd3421a (patch) | |
tree | 7afe3bf8a6c33d213c2d81bb1e2597f88dc3e2bc | |
parent | 77e789f65ab6a5007945edc2a9650a7209358b9c (diff) | |
download | sssd-448d1e38c9e97ba67041692dc03724e14bd3421a.tar.gz sssd-448d1e38c9e97ba67041692dc03724e14bd3421a.tar.xz sssd-448d1e38c9e97ba67041692dc03724e14bd3421a.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>
(cherry picked from commit befd8f4639ecef8185e82092beae801d68fa7eae)
-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 1172424cb..0716536cd 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, |