]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - libmount/src/btrfs.c
misc: fix reassigned values before old ones has been used [cppcheck]
[thirdparty/util-linux.git] / libmount / src / btrfs.c
index c387fadd52ac7954664fc581986291c7f0707c92..e6e8aebff061474689d2c1126f4996768f1d75e3 100644 (file)
@@ -101,7 +101,7 @@ uint64_t btrfs_get_default_subvol_id(const char *path)
 {
        int iocret;
        int fd;
-       DIR *dirstream = NULL;
+       DIR *dirstream;
        struct btrfs_ioctl_search_args args;
        struct btrfs_ioctl_search_key *sk = &args.key;
        struct btrfs_ioctl_search_header *sh;