Michal Privoznik 87a43a907f lib: Use g_clear_pointer() more
This change was generated using the following spatch:

  @ rule1 @
  expression a;
  identifier f;
  @@
    <...
  - f(*a);
    ... when != a;
  - *a = NULL;
  + g_clear_pointer(a, f);
    ...>

  @ rule2 @
  expression a;
  identifier f;
  @@
    <...
  - f(a);
    ... when != a;
  - a = NULL;
  + g_clear_pointer(&a, f);
    ...>

Then, I left some of the changes out, like tools/nss/ (which
doesn't link with glib) and put back a comment in
qemuBlockJobProcessEventCompletedActiveCommit() which coccinelle
decided to remove (I have no idea why).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2022-02-08 08:42:07 +01:00
..
2022-01-17 18:20:59 +01:00
2022-02-08 08:42:07 +01:00
2022-01-17 09:53:45 +01:00
2019-08-09 09:03:53 +02:00
2022-02-08 08:42:07 +01:00
2022-02-08 08:42:07 +01:00
2022-02-08 08:42:07 +01:00
2022-02-08 08:42:07 +01:00
2022-02-08 08:42:07 +01:00