Skip to content
Snippets Groups Projects
Commit 5e1f879a authored by Hikar's avatar Hikar Committed by Rich Salz
Browse files

Removed ugly size_t less than zero check.


CLA: trivial.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2674)
parent 70e14ffb
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ void *CRYPTO_malloc(size_t num, const char *file, int line)
if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
return malloc_impl(num, file, line);
if (num <= 0)
if (num == 0)
return NULL;
FAILTEST();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment