diff options
author | Byongho Lee <bhlee.kernel@gmail.com> | 2016-01-04 10:01:30 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-12 15:01:05 +0100 |
commit | 83d0a1727b9122d3e7e04943aeb2af5f4203d1fc (patch) | |
tree | a574d4380770c3d9c14c37aa28bff8ae706a6933 /utils.c | |
parent | dea6b51bae9333127e160ce75988dade61966062 (diff) |
btrfs-progs: use NULL instead of 0
Fix the code assigning 0 to pointer instead of NULL.
Signed-off-by: Byongho Lee <bhlee.kernel@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -154,7 +154,7 @@ int test_uuid_unique(char *fs_uuid) blkid_dev dev = NULL; blkid_cache cache = NULL; - if (blkid_get_cache(&cache, 0) < 0) { + if (blkid_get_cache(&cache, NULL) < 0) { printf("ERROR: lblkid cache get failed\n"); return 1; } @@ -2601,7 +2601,7 @@ int btrfs_scan_lblkid(void) if (btrfs_scan_done) return 0; - if (blkid_get_cache(&cache, 0) < 0) { + if (blkid_get_cache(&cache, NULL) < 0) { printf("ERROR: lblkid cache get failed\n"); return 1; } |