summaryrefslogtreecommitdiffstats
path: root/libmount
diff options
context:
space:
mode:
authorKarel Zak2019-04-15 13:35:21 +0200
committerKarel Zak2019-04-15 13:35:21 +0200
commit2e5ff9db30ba4bf70f2df8b37ee28c3805c28ed3 (patch)
treea99f2556fafca9bce442a766296649274bd5f857 /libmount
parentbuild-sys: enable ASAN on travis-ci (diff)
downloadkernel-qcow2-util-linux-2e5ff9db30ba4bf70f2df8b37ee28c3805c28ed3.tar.gz
kernel-qcow2-util-linux-2e5ff9db30ba4bf70f2df8b37ee28c3805c28ed3.tar.xz
kernel-qcow2-util-linux-2e5ff9db30ba4bf70f2df8b37ee28c3805c28ed3.zip
libmount: fix compiler warning [-Wsometimes-uninitialized]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount')
-rw-r--r--libmount/src/tab_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c
index 9b8bfc593..151130325 100644
--- a/libmount/src/tab_parse.c
+++ b/libmount/src/tab_parse.c
@@ -373,7 +373,7 @@ enomem:
static int mnt_parse_swaps_line(struct libmnt_fs *fs, const char *s)
{
uint64_t num;
- int rc;
+ int rc = 0;
char *p;
/* (1) source */