From dcb1c932a27f8b4dbc1de7ecd2567c0b59f3cbb4 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sat, 2 Jan 2010 00:55:00 +0000 Subject: Initialise sc to NULL in ssh_selinux_getctxbyname (thanks, Václav Ovsík; closes: #498684). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openbsd-compat/port-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsd-compat') diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c index b7142ba90..9cb58e369 100644 --- a/openbsd-compat/port-linux.c +++ b/openbsd-compat/port-linux.c @@ -69,7 +69,7 @@ ssh_selinux_enabled(void) static security_context_t ssh_selinux_getctxbyname(char *pwname) { - security_context_t sc; + security_context_t sc = NULL; char *sename = NULL, *role = NULL, *lvl = NULL; int r; -- cgit v1.2.3