mirror of git://anongit.mindrot.org/openssh.git
upstream commit
0 -> NULL when comparing with a char*. ok dtucker@, djm@. Upstream-ID: a928e9c21c0a9020727d99738ff64027c1272300
This commit is contained in:
parent
b1d38a3cc6
commit
e92c499a75
4
scp.c
4
scp.c
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: scp.c,v 1.182 2015/04/24 01:36:00 deraadt Exp $ */
|
/* $OpenBSD: scp.c,v 1.183 2015/10/16 17:07:24 mmcc Exp $ */
|
||||||
/*
|
/*
|
||||||
* scp - secure remote copy. This is basically patched BSD rcp which
|
* scp - secure remote copy. This is basically patched BSD rcp which
|
||||||
* uses ssh to do the data transfer (instead of using rcmd).
|
* uses ssh to do the data transfer (instead of using rcmd).
|
||||||
|
@ -866,7 +866,7 @@ rsource(char *name, struct stat *statp)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
last = strrchr(name, '/');
|
last = strrchr(name, '/');
|
||||||
if (last == 0)
|
if (last == NULL)
|
||||||
last = name;
|
last = name;
|
||||||
else
|
else
|
||||||
last++;
|
last++;
|
||||||
|
|
Loading…
Reference in New Issue