Skip to content

Commit

Permalink
FT-304 Fix a maybe-uninitialized warning found by gcc 4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
esmet committed Jul 22, 2014
1 parent 465cca9 commit a168015
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ft/serialize/block_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,8 @@ int block_table::iterate(enum translation_type type,
}

struct translation fakecurrent;
memset(&fakecurrent, 0, sizeof(struct translation));

struct translation *t = &fakecurrent;
if (r == 0) {
_mutex_lock();
Expand Down

0 comments on commit a168015

Please sign in to comment.