![]() |
|
Message-ID: <gjidsps4d2umlyfewoytiucpjb34i3zdcvd7txfovki45c5757@7d2gz6zlmipa> Date: Tue, 19 Mar 2024 21:04:41 +0000 From: NRK <nrk@...root.org> To: Jāāā Gustedt <jens.gustedt@...ia.fr> Cc: Rich Felker <dalias@...c.org>, musl@...ts.openwall.com, Mike Cui <cuicui@...il.com> Subject: Re: Potential bug in __res_msend_rc() wrt to union initialization. > actually the introduction of `{}` versus `{0}` in C23 was not meant to > provide any difference in semantics, just to make the syntax nicer and > consistent with C++. Regardless of what the intention was, the reality is that it *does* have semantic difference. Specifically, empty initialization `{}` benefits from the default initialization rules, which specify zero-ing out the padding bits whereas `{0}` doesn't guarantee that. - NRK
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.