diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2013-09-24 14:47:32 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2013-11-15 12:38:37 +0100 |
commit | 3cb9041764005c3a8f59b0b5ede3808b660d001a (patch) | |
tree | 6425c1f73ca6147047d70905ae47db5448036e38 /libdm/libdm-common.c | |
parent | eb4b03768f3ae751518b77b69882539e0c864a90 (diff) | |
download | lvm2-3cb9041764005c3a8f59b0b5ede3808b660d001a.tar.gz |
cleanup: do not pass uninitialized space to selinux.
Just like with dm_prepare_selinux_context rather initialize to NULL.
Diffstat (limited to 'libdm/libdm-common.c')
-rw-r--r-- | libdm/libdm-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index febcd0e4b..5ec576954 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -899,7 +899,7 @@ int dm_prepare_selinux_context(const char *path, mode_t mode) int dm_set_selinux_context(const char *path, mode_t mode) { #ifdef HAVE_SELINUX - security_context_t scontext; + security_context_t scontext = NULL; if (is_selinux_enabled() <= 0) return 1; |