summaryrefslogtreecommitdiffstats
path: root/readconf.c
diff options
context:
space:
mode:
authorjcs@openbsd.org <jcs@openbsd.org>2023-03-09 22:06:24 +0100
committerDamien Miller <djm@mindrot.org>2023-03-10 00:40:02 +0100
commit633d3dc2a1e9e2a013d019a0576a0771c8423713 (patch)
treeb06f1bb6ad6891dcd2ede8b3ec70dfd9c4f1e8bb /readconf.c
parentupstream: Re-split the merge of the reorder-hostkeys test. (diff)
downloadopenssh-633d3dc2a1e9e2a013d019a0576a0771c8423713.tar.xz
openssh-633d3dc2a1e9e2a013d019a0576a0771c8423713.zip
upstream: modify parentheses in conditionals to make it clearer what is
being assigned and what is being checked ok djm dtucker OpenBSD-Commit-ID: 19c10baa46ae559474409f75a5cb3d0eade7a9b8
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c
index e71428b28..a51baae40 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readconf.c,v 1.373 2023/03/05 05:34:09 dtucker Exp $ */
+/* $OpenBSD: readconf.c,v 1.374 2023/03/09 21:06:24 jcs Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -616,7 +616,7 @@ match_cfg_line(Options *options, char **condition, struct passwd *pw,
}
arg = criteria = NULL;
this_result = 1;
- if ((negate = attrib[0] == '!'))
+ if ((negate = (attrib[0] == '!')))
attrib++;
/* Criterion "all" has no argument and must appear alone */
if (strcasecmp(attrib, "all") == 0) {