Skip to content

Commit bd52eec

Browse files
AlenkaFtadeja
andauthored
Update cpp/src/arrow/tensor.cc
Co-authored-by: tadeja <tadeja@users.noreply.github.com>
1 parent fd2f20d commit bd52eec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/src/arrow/tensor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Status ToTensorImpl(const Container& container, bool null_to_nan, bool row_major
348348
// Check for no validity bitmap of each field
349349
// if null_to_nan conversion is set to false
350350
for (int i = 0; i < container.num_columns(); ++i) {
351-
int64_t null_count;
351+
int64_t null_count = 0;
352352
if constexpr (std::is_same_v<Container, Table>) {
353353
null_count = container.column(i)->null_count();
354354
} else if constexpr (std::is_same_v<Container, RecordBatch>) {

0 commit comments

Comments
 (0)