Michal Privoznik
b20a5e9a4d
lib: use struct zero initializer instead of memset
...
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(&X, 0, sizeof(X));
|
- memset(&X, 0, sizeof(T));
)
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Claudio Fontana <cfontana@suse.de>
2023-08-03 16:41:19 +02:00
..
2023-02-14 13:59:45 +01:00
2023-02-14 13:59:45 +01:00
2023-06-29 11:51:27 +02:00
2023-05-16 10:26:33 +02:00
2023-05-16 10:26:33 +02:00
2023-07-20 15:24:12 +02:00
2023-03-06 20:55:49 +01:00
2023-03-10 11:01:42 -07:00
2023-06-05 13:23:06 +02:00
2023-06-05 13:23:06 +02:00
2023-07-20 15:23:34 +02:00
2023-07-20 17:27:19 +02:00
2023-04-03 09:19:06 +02:00
2023-07-20 15:23:43 +02:00
2023-07-20 15:23:24 +02:00
2023-03-22 13:49:53 +01:00
2023-04-03 09:19:07 +02:00
2023-04-20 10:17:35 +02:00
2023-07-10 13:28:05 +02:00
2023-04-20 08:37:22 +02:00
2023-03-16 15:19:36 +01:00
2023-07-19 09:46:30 -05:00
2023-07-19 09:46:30 -05:00
2023-04-06 12:48:22 +02:00
2023-03-15 12:46:21 +01:00
2023-03-10 11:02:02 -07:00
2023-07-20 11:22:08 +02:00
2023-02-14 13:59:45 +01:00
2023-03-06 20:55:50 +01:00
2023-07-19 08:42:08 +02:00
2023-07-20 15:22:20 +02:00
2023-03-10 11:01:42 -07:00
2023-07-20 10:58:01 +02:00
2023-08-03 16:41:19 +02:00
2023-08-03 16:41:19 +02:00
2023-06-05 13:23:06 +02:00
2021-05-18 10:02:24 +02:00
2023-07-20 15:23:34 +02:00
2023-03-17 15:36:36 +01:00
2023-04-03 09:19:06 +02:00
2023-04-03 09:19:06 +02:00
2023-04-03 09:19:07 +02:00
2023-07-20 15:23:43 +02:00
2023-07-20 15:23:24 +02:00
2023-03-22 13:49:53 +01:00
2023-04-25 08:46:27 +02:00
2023-07-20 15:23:16 +02:00
2023-04-03 09:19:06 +02:00
2023-08-03 16:41:19 +02:00
2023-08-03 16:41:19 +02:00
2023-06-05 13:20:12 +02:00
2023-03-06 20:55:50 +01:00
2023-03-06 20:55:50 +01:00
2023-04-25 12:36:30 +02:00
2023-08-03 16:41:19 +02:00
2023-07-20 15:24:21 +02:00
2023-03-03 13:52:37 +01:00
2023-03-06 20:55:50 +01:00
2023-07-20 14:59:57 +02:00
2023-03-03 13:52:37 +01:00
2023-03-06 20:55:50 +01:00
2023-07-20 15:23:52 +02:00
2023-07-20 15:23:00 +02:00
2023-06-05 13:20:13 +02:00
2023-04-03 09:19:07 +02:00
2023-04-03 09:19:06 +02:00
2023-04-06 12:48:22 +02:00
2023-03-13 13:29:07 +01:00
2023-03-03 13:52:37 +01:00
2022-06-16 06:43:58 +02:00
2023-04-03 08:21:27 +02:00
2023-04-01 11:40:35 +02:00
2023-05-10 14:44:22 +02:00
2023-04-04 10:52:15 +02:00
2023-08-03 16:41:19 +02:00
2023-03-03 13:52:37 +01:00
2023-05-16 08:48:17 +02:00
2023-03-13 13:29:07 +01:00
2023-08-03 16:41:19 +02:00
2023-08-03 16:35:11 +02:00
2023-03-15 12:46:21 +01:00
2023-03-03 13:52:37 +01:00
2023-07-19 13:09:11 +02:00
2023-06-29 11:51:27 +02:00
2023-06-14 12:47:54 +02:00
2023-02-08 16:50:45 +01:00