aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 54ed6a4..3993157 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1030,8 +1030,9 @@ static void ftag_sync_run_rsync(int push)
char *src = remote_path;
char *dst = local_path;
if (push) {
+ char *tmp = src;
src = dst;
- dst = src;
+ dst = tmp;
}
char *cmd[] = {
"rsync",