From a76085bda883c2104afb33ab0334eca190927362 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Wed, 8 Mar 2023 17:25:37 +1100 Subject: [PATCH] Extra brackets to prevent warning. --- openbsd-compat/bsd-getentropy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbsd-compat/bsd-getentropy.c b/openbsd-compat/bsd-getentropy.c index 554dfad70..0231e066c 100644 --- a/openbsd-compat/bsd-getentropy.c +++ b/openbsd-compat/bsd-getentropy.c @@ -51,7 +51,7 @@ _ssh_compat_getentropy(void *s, size_t len) size_t o = 0; #ifdef HAVE_GETENTROPY - if (r = getentropy(s, len) == 0) + if ((r = getentropy(s, len)) == 0) return 0; #endif /* HAVE_GETENTROPY */ #ifdef HAVE_GETRANDOM