summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-10-06 17:07:15 +0000
committerJim Meyering <jim@meyering.net>2001-10-06 17:07:15 +0000
commitf5b2352264967a1bd9a21fec4e38fcca5b781883 (patch)
treec218be90c265ec4c333d6eb2c7c01154f3bcf117 /src
parent110190e4d903b0b3a8fc2405f74ab37e5ed087bf (diff)
downloadcoreutils-f5b2352264967a1bd9a21fec4e38fcca5b781883.tar.xz
(record_dest): Fix test for whether to free `ent'.
Thank heavens for regression tests.
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 c9d382567..04929693b 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. */