summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qacp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qacp.c b/qacp.c
index 0a79f1e..d91be9c 100644
--- a/qacp.c
+++ b/qacp.c
@@ -582,7 +582,7 @@ sendfiles(char **argv, int argc, int fileidx, short recursive)
tmprstatp = qacp_rstat(rdnp, &rstaterrno);
free(rdnp);
- if (rstatp) {
+ if (tmprstatp) {
/* Ok, the dir exists, i.e. rmtpath is /tmp/foo
* and the first rstat was an error. Now we know
* that /tmp exists, we leave destpath == rmtpath.