Skip to content

Commit

Permalink
btrfs: init ref_index to zero in add_inode_ref
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
  • Loading branch information
Chris Mason committed Oct 9, 2012
1 parent 1037a5a commit f46dbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/tree-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ static noinline int add_inode_ref(struct btrfs_trans_handle *trans,
int log_ref_ver = 0;
u64 parent_objectid;
u64 inode_objectid;
u64 ref_index;
u64 ref_index = 0;
int ref_struct_size;

ref_ptr = btrfs_item_ptr_offset(eb, slot);
Expand Down

0 comments on commit f46dbe3

Please sign in to comment.