From: mmcc Date: Fri, 16 Oct 2015 17:07:24 +0000 (+0000) Subject: 0 -> NULL when comparing with a char*. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5497a40fa14e87cdd15923ea075a0dfa157be28e;p=openbsd 0 -> NULL when comparing with a char*. ok dtucker@, djm@. --- diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index e15a69c1202..536f6d7aea6 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/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 * 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++;