[skip ci] Remove obsolete check from get_line_buffer

This commit is contained in:
ado 2024-02-25 12:10:46 +01:00
parent b3f3bdf8d1
commit 0ebbee1174
2 changed files with 0 additions and 12 deletions

View File

@ -752,12 +752,6 @@ private:
ssize_t get_line_buffer(char** lineptr, size_t* n, ssize_t get_line_buffer(char** lineptr, size_t* n,
const char* const csv_data_buffer, const char* const csv_data_buffer,
size_t csv_data_size, size_t& curr_char) { size_t csv_data_size, size_t& curr_char) {
if (lineptr == nullptr || n == nullptr ||
csv_data_buffer == nullptr) {
errno = EINVAL;
return -1;
}
if (curr_char >= csv_data_size) { if (curr_char >= csv_data_size) {
return -1; return -1;
} }

View File

@ -2882,12 +2882,6 @@ private:
ssize_t get_line_buffer(char** lineptr, size_t* n, ssize_t get_line_buffer(char** lineptr, size_t* n,
const char* const csv_data_buffer, const char* const csv_data_buffer,
size_t csv_data_size, size_t& curr_char) { size_t csv_data_size, size_t& curr_char) {
if (lineptr == nullptr || n == nullptr ||
csv_data_buffer == nullptr) {
errno = EINVAL;
return -1;
}
if (curr_char >= csv_data_size) { if (curr_char >= csv_data_size) {
return -1; return -1;
} }