diff options
Diffstat (limited to 'lib/mem.h')
-rw-r--r-- | lib/mem.h | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -35,15 +35,6 @@ char *_gnutls_strdup(const char *); unsigned _gnutls_mem_is_zero(const uint8_t *ptr, unsigned size); -/* To avoid undefined behavior when s1 or s2 are null and n = 0 */ -inline static -int safe_memcmp(const void *s1, const void *s2, size_t n) -{ - if (n == 0) - return 0; - return memcmp(s1, s2, n); -} - #define zrelease_mpi_key(mpi) if (*mpi!=NULL) { \ _gnutls_mpi_clear(*mpi); \ _gnutls_mpi_release(mpi); \ |