summaryrefslogtreecommitdiff
path: root/src/rpc/virnetclientstream.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2022-01-28 18:42:45 +0100
committerMichal Privoznik <mprivozn@redhat.com>2022-02-08 08:42:07 +0100
commit87a43a907f0ad4897a28ad7c216bc70f37270b93 (patch)
tree77becc044a219aed11f5522edb39fc8aa3cd66ae /src/rpc/virnetclientstream.c
parent1688d2527f1ae34d57d0b5c01fbea79e40dac7b7 (diff)
downloadlibvirt-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/virnetclientstream.c')
0 files changed, 0 insertions, 0 deletions