diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2022-01-28 18:42:45 +0100 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2022-02-08 08:42:07 +0100 |
commit | 87a43a907f0ad4897a28ad7c216bc70f37270b93 (patch) | |
tree | 77becc044a219aed11f5522edb39fc8aa3cd66ae /src/rpc/virnetsshsession.h | |
parent | 1688d2527f1ae34d57d0b5c01fbea79e40dac7b7 (diff) | |
download | libvirt-87a43a907f0ad4897a28ad7c216bc70f37270b93.tar.gz |
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>
Diffstat (limited to 'src/rpc/virnetsshsession.h')
0 files changed, 0 insertions, 0 deletions