diff options
author | Rich Felker <dalias@aerifal.cx> | 2025-05-05 09:23:32 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2025-05-05 09:23:32 -0400 |
commit | 6915b34860459a963fb1ba468a4d5389dd65c67b (patch) | |
tree | 56bcb6e9348dd5381b581b7bc64b14b69d48962a /src/multibyte/mbsnrtowcs.c | |
parent | a34ca6ead1f04283ebd04ffcc42f8dbc6995f2d1 (diff) | |
download | musl-6915b34860459a963fb1ba468a4d5389dd65c67b.tar.gz |
dns resolver: reorder sockaddr union to make initialization safe
some recent compilers have adopted a dubious interpretation of the C
specification for union initializers, that when the initialized member
is smaller than the size of the union, the remaining padding does not
have to be zero-initialized. in the interests of not depending on any
particular interpretation, place the larger member first so it's
initialized and ensures the whole object is zero-filled.
Diffstat (limited to 'src/multibyte/mbsnrtowcs.c')
0 files changed, 0 insertions, 0 deletions