diff options
author | Karel Zak | 2018-05-03 10:30:51 +0200 |
---|---|---|
committer | Karel Zak | 2018-05-03 10:31:09 +0200 |
commit | 5653c982e84eb9ffa512ec175862fcf0a8f3fb1e (patch) | |
tree | 38be848d1dc1d44026ef4f6aa822a480ccb4611f /disk-utils | |
parent | build-sys: cleanup --with/--without help strings (diff) | |
download | kernel-qcow2-util-linux-5653c982e84eb9ffa512ec175862fcf0a8f3fb1e.tar.gz kernel-qcow2-util-linux-5653c982e84eb9ffa512ec175862fcf0a8f3fb1e.tar.xz kernel-qcow2-util-linux-5653c982e84eb9ffa512ec175862fcf0a8f3fb1e.zip |
fdisk: fix compiler warning [-Wmaybe-uninitialized]
Reported-by: L A Walsh <lkml@tlinx.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/fdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index 95bc83696..55af8dc11 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -271,7 +271,7 @@ static int ask_number(struct fdisk_context *cxt, do { int rc = get_user_reply(prompt, buf, bufsz); - uint64_t num; + uint64_t num = 0; if (rc) return rc; |