commit | aa8330d364d1d13103d698debad0cf3d6d7d53a5 | [log] [tgz] |
---|---|---|
author | A. Unique TensorFlower <gardener@tensorflow.org> | Tue Oct 22 08:38:44 2019 -0700 |
committer | TensorFlower Gardener <gardener@tensorflow.org> | Tue Oct 22 08:42:28 2019 -0700 |
tree | 842ad1f8851d90471d3ca5f03d9afcf96324d690 | |
parent | 9fcdeb0c5cfa3f960beb1c6dd12e605928e18f32 [diff] |
Avoid uninitialized reads by initializing variable. PiperOrigin-RevId: 276070930 Change-Id: I0a2451cf61bb4e1f06c857d08f8f76b50897c88d
diff --git a/tensorflow/core/kernels/data/parallel_interleave_dataset_op.cc b/tensorflow/core/kernels/data/parallel_interleave_dataset_op.cc index 5cd65ee..677ef65 100644 --- a/tensorflow/core/kernels/data/parallel_interleave_dataset_op.cc +++ b/tensorflow/core/kernels/data/parallel_interleave_dataset_op.cc
@@ -761,7 +761,7 @@ // Process until the results queue is full or we reach end of input. while (true) { auto result = std::make_shared<Result>(); - bool end_of_input; + bool end_of_input = false; result->status = iterator->GetNext(ctx_.get(), &result->return_values, &end_of_input); if (end_of_input) {