1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: do not pass uninitialized space to selinux.

Just like with dm_prepare_selinux_context rather initialize to NULL.
This commit is contained in:
Zdenek Kabelac 2013-09-24 14:47:32 +02:00
parent eb4b03768f
commit 3cb9041764

View File

@ -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;