summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-04-02 22:06:22 +0200
committerJim Meyering <jim@meyering.net>2007-04-02 22:06:22 +0200
commitabdf924333bdf5bf7443e3b7ae68fbaddfe0cfb4 (patch)
tree83ab40dfa8a674de606a5de3daf47bf554a1c61b /src
parenta3b65a63a0ecbd617f59572add0109e5e5944acf (diff)
downloadcoreutils-abdf924333bdf5bf7443e3b7ae68fbaddfe0cfb4.tar.xz
* src/copy.c (copy_reg): Initialize local "con", before calling
getfscreatecon, in case that function (or its inline stub) does not set it.
Diffstat (limited to 'src')
-rw-r--r--src/copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copy.c b/src/copy.c
index d2088ae46..81636ae7b 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -306,7 +306,7 @@ copy_reg (char const *src_name, char const *dst_name,
that is used when the destination file doesn't already exist. */
if (x->preserve_security_context && 0 <= dest_desc)
{
- security_context_t con;
+ security_context_t con = NULL;
if (getfscreatecon (&con) < 0)
{
error (0, errno, _("failed to get file system create context"));