summaryrefslogtreecommitdiffstats
path: root/disk-utils/fdisk.c
diff options
context:
space:
mode:
authorKarel Zak2015-07-29 13:51:05 +0200
committerKarel Zak2015-07-29 13:51:05 +0200
commitf45f5c83f9438889b3fa5107ffb7702e99ccca96 (patch)
treee0623aa312ca02b603296adb68f01eaed560cf7b /disk-utils/fdisk.c
parentpo: update fr.po (from translationproject.org) (diff)
downloadkernel-qcow2-util-linux-f45f5c83f9438889b3fa5107ffb7702e99ccca96.tar.gz
kernel-qcow2-util-linux-f45f5c83f9438889b3fa5107ffb7702e99ccca96.tar.xz
kernel-qcow2-util-linux-f45f5c83f9438889b3fa5107ffb7702e99ccca96.zip
fdisk: value is never read [clang analyze]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fdisk.c')
-rw-r--r--disk-utils/fdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c
index 8526afd29..0e4567677 100644
--- a/disk-utils/fdisk.c
+++ b/disk-utils/fdisk.c
@@ -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);