aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_os2.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/rand/rand_os2.c')
-rw-r--r--crypto/rand/rand_os2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand_os2.c b/crypto/rand/rand_os2.c
index 0397d77c63..d95cd24a3b 100644
--- a/crypto/rand/rand_os2.c
+++ b/crypto/rand/rand_os2.c
@@ -149,7 +149,7 @@ int RAND_poll(void)
if (DosQuerySysState) {
char *buffer = OPENSSL_malloc(256 * 1024);
- if (!buffer)
+ if (buffer == NULL)
return 0;
if (DosQuerySysState(0x1F, 0, 0, 0, buffer, 256 * 1024) == 0) {