]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: value is never read [clang analyze]
authorKarel Zak <kzak@redhat.com>
Wed, 29 Jul 2015 11:51:05 +0000 (13:51 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 29 Jul 2015 11:51:05 +0000 (13:51 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fdisk.c

index 8526afd294182199d784db584d017f60908a18a0..0e45676773b139bad4124e66eb4cfdba1ed4c392 100644 (file)
@@ -442,7 +442,7 @@ static struct fdisk_parttype *ask_partition_type(struct fdisk_context *cxt)
 void list_partition_types(struct fdisk_context *cxt)
 {
        size_t ntypes = 0;
-       struct fdisk_label *lb = fdisk_get_label(cxt, NULL);
+       struct fdisk_label *lb;
 
        assert(cxt);
        lb = fdisk_get_label(cxt, NULL);