summaryrefslogtreecommitdiff
path: root/src/mv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mv.c')
-rw-r--r--src/mv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mv.c b/src/mv.c
index cd03b5ab0..d9b110966 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -195,7 +195,7 @@ do_move (const char *source, const char *dest, const struct cp_options *x)
copied-into-self directory, DEST (`b/b' in the example),
and failing. */
- dir_to_remove = dest;
+ dir_to_remove = NULL;
error (0, 0,
_("cannot move `%s' to a subdirectory of itself, `%s'"),
source, dest);