diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2022-08-18 13:55:29 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2022-08-19 14:55:47 +0200 |
commit | 309df239e3ee474f3a5337f8fa3c0a1f7b0a89e5 (patch) | |
tree | 65bd33e871669ca335c1fb6747daae87197f38d8 /lib/metadata | |
parent | ac2c78544fa60490f9506f4ea0cd7d74d2395b28 (diff) | |
download | lvm2-309df239e3ee474f3a5337f8fa3c0a1f7b0a89e5.tar.gz |
vdo: reset errno before strtoull
Missed errno reset in commit ebad057579aeff0980a1b8af7eaacd56e62ed0c9.
Diffstat (limited to 'lib/metadata')
-rw-r--r-- | lib/metadata/vdo_manip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/metadata/vdo_manip.c b/lib/metadata/vdo_manip.c index 637fd1e5d..0db401537 100644 --- a/lib/metadata/vdo_manip.c +++ b/lib/metadata/vdo_manip.c @@ -618,6 +618,7 @@ static int _get_memory_info(uint64_t *total_mb, uint64_t *available_mb) if (!found) continue; // not interesting + errno = 0; *(found->value) = (uint64_t) strtoull(e, &tail, 10); if ((e == tail) || errno) |