From 3f7bfac2a0529316b377ea8b08821590bb9f85f7 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 15 Jul 2005 19:10:03 +0000 Subject: [PATCH] Avoid newest test when no destination was specified. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 5ebe2ddd..5741ef9e 100644 --- a/main.c +++ b/main.c @@ -874,7 +874,7 @@ static int start_client(int argc, char *argv[]) if (shell_path) { /* source is remote */ char *dummy1; int dummy2; - if (check_for_hostspec(argv[argc], &dummy1, &dummy2)) { + if (argc && check_for_hostspec(argv[argc], &dummy1, &dummy2)) { rprintf(FERROR, "The source and destination cannot both be remote.\n"); exit_cleanup(RERR_SYNTAX); -- 2.34.1