artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c975014
)
0 -> NULL when comparing with a char*.
author
mmcc
<mmcc@openbsd.org>
Fri, 16 Oct 2015 17:07:24 +0000
(17:07 +0000)
committer
mmcc
<mmcc@openbsd.org>
Fri, 16 Oct 2015 17:07:24 +0000
(17:07 +0000)
ok dtucker@, djm@.
usr.bin/ssh/scp.c
patch
|
blob
|
history
diff --git
a/usr.bin/ssh/scp.c
b/usr.bin/ssh/scp.c
index
e15a69c
..
536f6d7
100644
(file)
--- a/
usr.bin/ssh/scp.c
+++ b/
usr.bin/ssh/scp.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: scp.c,v 1.18
2 2015/04/24 01:36:00 deraadt
Exp $ */
+/* $OpenBSD: scp.c,v 1.18
3 2015/10/16 17:07:24 mmcc
Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
@@
-845,7
+845,7
@@
rsource(char *name, struct stat *statp)
return;
}
last = strrchr(name, '/');
- if (last ==
0
)
+ if (last ==
NULL
)
last = name;
else
last++;