diff options
author | Hikar <hikar@davelog.net> | 2017-02-18 08:44:49 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-02-21 12:31:45 -0500 |
commit | c62ee12574e661a111238954b07ea1d5f0786bec (patch) | |
tree | a51fc97d0afea74b44e905b4431a9bbc97fe1527 /crypto | |
parent | 88bf0d36048569e0dd5e6193c4ec21d2a9da5aba (diff) |
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)
(cherry picked from commit 5e1f879ab5a2bfdf2d58222f965f93fe1b511ce7)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/mem.c b/crypto/mem.c index 02aa43a7ef..bc35132fc7 100644 --- a/crypto/mem.c +++ b/crypto/mem.c @@ -75,7 +75,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; allow_customize = 0; |