diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-03-22 11:16:06 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-03-22 11:16:06 +0000 |
commit | 583f7dd2ce7679e5f377af4bc999d74c620466b8 (patch) | |
tree | 52586ed5b40c17fb8458c8a877909bb0c7351e7d | |
parent | 27e51f2dabc9c5a7ee6324375e7a93a20bebf874 (diff) |
Compare explicitly against NULL.
From kristaps@
-rw-r--r-- | usr.bin/rsync/main.c | 4 |
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; |