summaryrefslogtreecommitdiff
path: root/cmds-filesystem.c
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2014-03-21 06:36:08 -0700
committerChris Mason <clm@fb.com>2014-03-21 09:50:47 -0700
commitd1fffb0221509e8a5c844e9ca9b27a340c35cb53 (patch)
treea389b4cb8634a93340a548f840184b0d19df131f /cmds-filesystem.c
parent8d2359c8d9419be10e3af75f426e984df3d2e020 (diff)
btrfs-progs: fix uninit variable in btrfs_scan_kernel
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'cmds-filesystem.c')
-rw-r--r--cmds-filesystem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index 2b2d068e..dfbb4f50 100644
--- a/cmds-filesystem.c
+++ b/cmds-filesystem.c
@@ -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");