Extra brackets to prevent warning.

This commit is contained in:
Darren Tucker 2023-03-08 17:25:37 +11:00
parent 147ae57d4d
commit a76085bda8
No known key found for this signature in database

View File

@ -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