From: Jim Meyering Date: Sat, 6 Oct 2001 17:07:15 +0000 (+0000) Subject: (record_dest): Fix test for whether to free `ent'. X-Git-Tag: FILEUTILS-4_1_1~162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5b2352264967a1bd9a21fec4e38fcca5b781883;p=thirdparty%2Fcoreutils.git (record_dest): Fix test for whether to free `ent'. Thank heavens for regression tests. --- diff --git a/src/copy.c b/src/copy.c index c9d3825676..04929693b7 100644 --- a/src/copy.c +++ b/src/copy.c @@ -681,7 +681,7 @@ record_dest (char const *dest, struct stat const *dest_stats) xalloc_die (); } - if (ent_from_table == ent) + if (ent_from_table != ent) { /* There was alread a matching entry in the table, so ENT was not inserted. Free it. */