Skip to content

Commit

Permalink
Fix -Wmaybe-uninitialized in TimeCache
Browse files Browse the repository at this point in the history
  • Loading branch information
gleichdick committed Dec 4, 2021
1 parent 5f7a53f commit 00e3209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tf2/src/cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ bool TimeCache::getData(
std::string * error_str)
{
// returns false if data not available
TransformStorage * p_temp_1;
TransformStorage * p_temp_2;
TransformStorage * p_temp_1 = nullptr;
TransformStorage * p_temp_2 = nullptr;

int num_nodes = findClosest(p_temp_1, p_temp_2, time, error_str);
if (num_nodes == 0) {
Expand Down

0 comments on commit 00e3209

Please sign in to comment.