btrfs-progs: fix uninit variable in btrfs_scan_kernel
authorChris Mason <clm@fb.com>
Fri, 21 Mar 2014 13:36:08 +0000 (06:36 -0700)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 16:50:47 +0000 (09:50 -0700)
Signed-off-by: Chris Mason <clm@fb.com>
cmds-filesystem.c

index 2b2d068..dfbb4f5 100644 (file)
@@ -448,7 +448,7 @@ static int btrfs_scan_kernel(void *search)
        struct mntent *mnt;
        struct btrfs_ioctl_fs_info_args fs_info_arg;
        struct btrfs_ioctl_dev_info_args *dev_info_arg = NULL;
-       struct btrfs_ioctl_space_args *space_info_arg;
+       struct btrfs_ioctl_space_args *space_info_arg = NULL;
        char label[BTRFS_LABEL_SIZE];
 
        f = setmntent("/proc/self/mounts", "r");