From: Jim Meyering Date: Mon, 2 Apr 2007 20:06:22 +0000 (+0200) Subject: * src/copy.c (copy_reg): Initialize local "con", before calling X-Git-Tag: v6.9.89~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abdf924333bdf5bf7443e3b7ae68fbaddfe0cfb4;p=thirdparty%2Fcoreutils.git * src/copy.c (copy_reg): Initialize local "con", before calling getfscreatecon, in case that function (or its inline stub) does not set it. --- diff --git a/ChangeLog b/ChangeLog index 28af1bcc7a..46b7b02ae0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-02 Jim Meyering + + * src/copy.c (copy_reg): Initialize local "con", before calling + getfscreatecon, in case that function (or its inline stub) does + not set it. + 2007-04-01 Paul Eggert * src/ls.c (print_horizontal): Fix bug reported by Mike Frysinger: diff --git a/src/copy.c b/src/copy.c index d2088ae464..81636ae7b6 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"));