Skip to content

Commit

Permalink
Btrfs: init old_generation in get_old_root
Browse files Browse the repository at this point in the history
gcc was giving an uninit variable warning here.  Strictly
speaking we don't need to init it, but this will make things
much less error prone.

Signed-off-by: Chris Mason <chris.mason@fusionio.com>
  • Loading branch information
Chris Mason committed Jun 16, 2012
1 parent 9c10640 commit 4325edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/ctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ get_old_root(struct btrfs_root *root, u64 time_seq)
struct tree_mod_elem *tm;
struct extent_buffer *eb;
struct tree_mod_root *old_root = NULL;
u64 old_generation;
u64 old_generation = 0;
u64 logical;

eb = btrfs_read_lock_root_node(root);
Expand Down

0 comments on commit 4325edd

Please sign in to comment.