summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2021-03-22 11:16:05 +0000
committerclaudio <claudio@openbsd.org>2021-03-22 11:16:05 +0000
commit88e84a3bf7adf5d69cc334bd08b2e7005fedf1fc (patch)
tree82318893458b4e1f3d7243f73d7221d178c3ab2c /usr.bin
parentMake fmt argument const. Format local vars a bit. (diff)
downloadwireguard-openbsd-88e84a3bf7adf5d69cc334bd08b2e7005fedf1fc.tar.xz
wireguard-openbsd-88e84a3bf7adf5d69cc334bd08b2e7005fedf1fc.zip
Compare explicitly against NULL.
From kristaps@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rsync/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rsync/main.c b/usr.bin/rsync/main.c
index 1bbbc6a9a5b..00b9f0ea27f 100644
--- a/usr.bin/rsync/main.c
+++ b/usr.bin/rsync/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.51 2020/12/15 08:20:42 claudio Exp $ */
+/* $Id: main.c,v 1.52 2021/03/22 11:16:05 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -132,7 +132,7 @@ fargs_parse(size_t argc, char *argv[], struct opts *opts)
f->module = cp;
if ((cp = strchr(f->module, '/')) != NULL)
*cp = '\0';
- if ((cp = strchr(f->host, ':'))) {
+ if ((cp = strchr(f->host, ':')) != NULL) {
/* host:port --> extract port */
*cp++ = '\0';
opts->port = cp;