locale-util: fix argument for munmap()

This commit is contained in:
Yu Watanabe
2025-04-13 04:59:26 +09:00
parent 9f091f098a
commit 90abb64fd5
+2 -3
View File
@@ -97,7 +97,6 @@ static int add_locales_from_archive(Set *locales) {
const struct namehashent *e;
const void *p = MAP_FAILED;
_cleanup_close_ int fd = -EBADF;
size_t sz = 0;
struct stat st;
int r;
@@ -154,9 +153,9 @@ static int add_locales_from_archive(Set *locales) {
r = 0;
finish:
finish:
if (p != MAP_FAILED)
munmap((void*) p, sz);
munmap((void*) p, st.st_size);
return r;
}