1
0
mirror of https://git.tukaani.org/xz.git synced 2025-02-23 08:58:31 +00:00
Lasse Collin c405264c03
tuklib_mbstr_nonprint: Preserve the value of errno
A typical use case is like this:

    printf("%s: %s\n", tuklib_mask_nonprint(filename), strerror(errno));

tuklib_mask_nonprint() may call mbrtowc() and malloc() which may modify
errno. If errno isn't preserved, the error message might be wrong if
a compiler decides to call tuklib_mask_nonprint() before strerror().

Fixes: 40e573305535960574404d2eae848b248c95ea7e
2025-01-05 20:16:09 +02:00
..
2024-05-18 00:34:07 +03:00
2025-01-02 15:43:37 +02:00
2024-06-07 16:01:27 +03:00