From 3cb9041764005c3a8f59b0b5ede3808b660d001a Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 24 Sep 2013 14:47:32 +0200 Subject: [PATCH] cleanup: do not pass uninitialized space to selinux. Just like with dm_prepare_selinux_context rather initialize to NULL. --- libdm/libdm-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;