summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2015-07-29 14:04:17 +0200
committerKarel Zak2015-07-29 14:04:17 +0200
commit129fe4f31b234c8acb4e9eeb2e09fcc11ffab2b7 (patch)
tree7107ceafba9efccb5f7142b862d3fb053b3ca602
parentlibfdisk: undefined or garbage value returned to caller [clang analyze] (diff)
downloadkernel-qcow2-util-linux-129fe4f31b234c8acb4e9eeb2e09fcc11ffab2b7.tar.gz
kernel-qcow2-util-linux-129fe4f31b234c8acb4e9eeb2e09fcc11ffab2b7.tar.xz
kernel-qcow2-util-linux-129fe4f31b234c8acb4e9eeb2e09fcc11ffab2b7.zip
libfdisk: result of operation is garbage or undefined [clang analyze]
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--libfdisk/src/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/script.c b/libfdisk/src/script.c
index e582e1717..961e4e914 100644
--- a/libfdisk/src/script.c
+++ b/libfdisk/src/script.c
@@ -1245,7 +1245,7 @@ int fdisk_script_read_line(struct fdisk_script *dp, FILE *f, char *buf, size_t b
int fdisk_script_read_file(struct fdisk_script *dp, FILE *f)
{
char buf[BUFSIZ];
- int rc;
+ int rc = 1;
assert(dp);
assert(f);