diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-03-09 15:58:48 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-03-10 01:34:27 +0100 |
commit | bee9b5c1d8d8f54c3ffe3c96abd2ce28cd2b5558 (patch) | |
tree | cdfbf1f93a9d2326c97c3c4cab8e2eeb93f41734 /libdm | |
parent | 74936f53f7123c092d2ba6b9b7883db47bf0c61c (diff) | |
download | lvm2-bee9b5c1d8d8f54c3ffe3c96abd2ce28cd2b5558.tar.gz |
cov: mask uninitialized value
Coverity doesn't track ioctl() too well, so let's just make it quiet.
Diffstat (limited to 'libdm')
-rw-r--r-- | libdm/libdm-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index f2ea64905..1f3fe1642 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -1222,7 +1222,7 @@ int get_dev_node_read_ahead(const char *dev_name, uint32_t major, uint32_t minor int len; int r = 1; int fd; - long read_ahead_long; + long read_ahead_long = 0; /* * If we know the device number, use sysfs if we can. |