diff options
author | Colin Watson <cjwatson@debian.org> | 2010-01-02 00:55:00 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-01-02 00:55:00 +0000 |
commit | dcb1c932a27f8b4dbc1de7ecd2567c0b59f3cbb4 (patch) | |
tree | 126e9475298e62ca2124a88cd66c08deb958813b /openbsd-compat | |
parent | c4ee4042fcb3bfa23696ad73a6319363cd625740 (diff) |
Initialise sc to NULL in ssh_selinux_getctxbyname (thanks, Václav Ovsík;
closes: #498684).
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/port-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
69 | static security_context_t | 69 | static security_context_t |
70 | ssh_selinux_getctxbyname(char *pwname) | 70 | ssh_selinux_getctxbyname(char *pwname) |
71 | { | 71 | { |
72 | security_context_t sc; | 72 | security_context_t sc = NULL; |
73 | char *sename = NULL, *role = NULL, *lvl = NULL; | 73 | char *sename = NULL, *role = NULL, *lvl = NULL; |
74 | int r; | 74 | int r; |
75 | 75 | ||