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-04-06 12:48:22 +02:00
2023-02-14 13:59:45 +01:00
2023-04-06 12:48:22 +02:00
2023-03-13 13:29:07 +01:00
2022-06-16 06:43:58 +02:00
2023-04-04 10:52:15 +02:00
2023-03-13 13:29:07 +01:00
2023-06-14 12:47:54 +02:00