mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Removed ugly size_t less than zero check.
CLA: trivial. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2674)
This commit is contained in:
parent
70e14ffbaf
commit
5e1f879ab5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user