mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
vdo: reset errno before strtoull
Missed errno reset in commit ebad057579
.
This commit is contained in:
parent
ac2c78544f
commit
309df239e3
@ -618,6 +618,7 @@ static int _get_memory_info(uint64_t *total_mb, uint64_t *available_mb)
|
|||||||
if (!found)
|
if (!found)
|
||||||
continue; // not interesting
|
continue; // not interesting
|
||||||
|
|
||||||
|
errno = 0;
|
||||||
*(found->value) = (uint64_t) strtoull(e, &tail, 10);
|
*(found->value) = (uint64_t) strtoull(e, &tail, 10);
|
||||||
|
|
||||||
if ((e == tail) || errno)
|
if ((e == tail) || errno)
|
||||||
|
Loading…
Reference in New Issue
Block a user