diff options
Diffstat (limited to 'crypto/rand/rand_win.c')
-rw-r--r-- | crypto/rand/rand_win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand_win.c b/crypto/rand/rand_win.c index a91014bad3..7bf41616a6 100644 --- a/crypto/rand/rand_win.c +++ b/crypto/rand/rand_win.c @@ -712,7 +712,7 @@ static void readscreen(void) bi.biClrImportant = 0; bmbits = OPENSSL_malloc(size); - if (bmbits) { + if (bmbits != NULL) { /* Now go through the whole screen, repeatedly grabbing n lines */ for (y = 0; y < h - n; y += n) { unsigned char md[MD_DIGEST_LENGTH]; |