[2/3] btrfs-progs: Avoid uninitialized variant compile warning
diff mbox

Message ID 4BAB599A.2050605@cn.fujitsu.com
State New, archived
Headers show

Commit Message

Miao Xie March 25, 2010, 12:39 p.m. UTC
None

Patch
diff mbox

diff --git a/btrfs-list.c b/btrfs-list.c
index 9dedb5d..112bed2 100644
--- a/btrfs-list.c
+++ b/btrfs-list.c
@@ -663,9 +663,9 @@  static int print_one_extent(int fd, struct btrfs_ioctl_search_header *sh,
 			    char **cache_dir_name, u64 *cache_ino,
 			    char **cache_full_name)
 {
-	u64 len;
-	u64 disk_start;
-	u64 disk_offset;
+	u64 len = 0;
+	u64 disk_start = 0;
+	u64 disk_offset = 0;
 	u8 type;
 	int compressed = 0;
 	int flags = 0;