=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/scp.c,v retrieving revision 1.182 retrieving revision 1.183 diff -u -r1.182 -r1.183 --- src/usr.bin/ssh/scp.c 2015/04/24 01:36:00 1.182 +++ src/usr.bin/ssh/scp.c 2015/10/16 17:07:24 1.183 @@ -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 * uses ssh to do the data transfer (instead of using rcmd). @@ -845,7 +845,7 @@ return; } last = strrchr(name, '/'); - if (last == 0) + if (last == NULL) last = name; else last++;