On 8/3/23 12:36, Michal Privoznik wrote:
> This is a more concise approach and guarantees there is
> no time window where the struct is uninitialized.
>
> Generated using the following semantic patch:
>
> @@
> type T;
> identifier X;
> @@
> - T X;
> + T X = { 0 };
> ... when
This is a more concise approach and guarantees there is
no time window where the struct is uninitialized.
Generated using the following semantic patch:
@@
type T;
identifier X;
@@
- T X;
+ T X = { 0 };
... when exists
(
- memset(, 0, sizeof(X));
|
- memset(, 0,