aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stdlib/tst-getrandom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/tst-getrandom.c b/stdlib/tst-getrandom.c
index 608fc4746e..61c3cae92e 100644
--- a/stdlib/tst-getrandom.c
+++ b/stdlib/tst-getrandom.c
@@ -189,7 +189,7 @@ test_getentropy (void)
/* The probability that these two buffers are equal is very
small. */
- if (memcmp (buf, buf2, sizeof (buf) == 0))
+ if (memcmp (buf, buf2, sizeof (buf)) == 0)
{
printf ("error: getentropy appears to return constant bytes\n");
errors = true;