summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authormmcc@openbsd.org <mmcc@openbsd.org>2015-10-16 17:07:24 +0000
committerDamien Miller <djm@mindrot.org>2015-10-17 05:45:10 +1100
commite92c499a75477ecfe94dd7b4aed89f20b1fac5a7 (patch)
tree3e6fa5539513695e29ef9ba7f264dbae21b614cb /scp.c
parentb1d38a3cc6fe349feb8d16a5f520ef12d1de7cb2 (diff)
upstream commit
0 -> NULL when comparing with a char*. ok dtucker@, djm@. Upstream-ID: a928e9c21c0a9020727d99738ff64027c1272300
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scp.c b/scp.c
index 593fe89bd..842dc66a9 100644
--- a/scp.c
+++ b/scp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: scp.c,v 1.182 2015/04/24 01:36:00 deraadt Exp $ */ 1/* $OpenBSD: scp.c,v 1.183 2015/10/16 17:07:24 mmcc Exp $ */
2/* 2/*
3 * scp - secure remote copy. This is basically patched BSD rcp which 3 * scp - secure remote copy. This is basically patched BSD rcp which
4 * uses ssh to do the data transfer (instead of using rcmd). 4 * uses ssh to do the data transfer (instead of using rcmd).
@@ -866,7 +866,7 @@ rsource(char *name, struct stat *statp)
866 return; 866 return;
867 } 867 }
868 last = strrchr(name, '/'); 868 last = strrchr(name, '/');
869 if (last == 0) 869 if (last == NULL)
870 last = name; 870 last = name;
871 else 871 else
872 last++; 872 last++;