From 083569fca8fa70d2eaa49c1b8d83b06f1eec7ea3 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Thu, 13 Feb 2020 07:38:11 -0500 Subject: [PATCH] This code is terrible and should not be there. (#496) --- include/simdjson/padded_string.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/simdjson/padded_string.h b/include/simdjson/padded_string.h index e5a826cf0..228156f6b 100644 --- a/include/simdjson/padded_string.h +++ b/include/simdjson/padded_string.h @@ -21,8 +21,6 @@ inline char *allocate_padded_buffer(size_t length) noexcept { char *padded_buffer = aligned_malloc_char(64, totalpaddedlength); #ifndef NDEBUG if (padded_buffer == nullptr) { - errno = EINVAL; - perror("simdjson::allocate_padded_buffer() aligned_malloc_char() failed"); return nullptr; } #endif // NDEBUG