summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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. */