summaryrefslogtreecommitdiff
path: root/mcopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'mcopy.c')
-rw-r--r--mcopy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcopy.c b/mcopy.c
index 3b4d4cf..b282394 100644
--- a/mcopy.c
+++ b/mcopy.c
@@ -119,7 +119,7 @@ static int _unix_write(MainParam_t *mp, int needfilter, const char *unixFile)
/* if we are creating a file, check whether it already exists */
if(!arg->type) {
- if (!arg->nowarn && &arg->type && !access(unixFile, 0)){
+ if (!arg->nowarn && !access(unixFile, 0)){
if(arg->noClobber) {
fprintf(stderr, "File \"%s\" exists. To overwrite, try again, and explicitly specify target directory\n",unixFile);
return ERROR_ONE;