From 5497a40fa14e87cdd15923ea075a0dfa157be28e Mon Sep 17 00:00:00 2001 From: mmcc Date: Fri, 16 Oct 2015 17:07:24 +0000 Subject: [PATCH] 0 -> NULL when comparing with a char*. ok dtucker@, djm@. --- usr.bin/ssh/scp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; -- 2.20.1