diff --git a/tensorflow/lite/c/common_test.cc b/tensorflow/lite/c/common_test.cc index 65c6ec63b28..7230adff0e9 100644 --- a/tensorflow/lite/c/common_test.cc +++ b/tensorflow/lite/c/common_test.cc @@ -106,7 +106,7 @@ TEST(Quantization, TestQuantizationFree) { } TEST(Sparsity, TestSparsityFree) { - TfLiteTensor t; + TfLiteTensor t = {}; // Set these values, otherwise TfLiteTensorFree has uninitialized values. t.allocation_type = kTfLiteArenaRw; t.dims = nullptr;