+2
−4
Loading
Coccinelle semantic patch:
@@
expression LHS, SZ;
@@
- LHS = g_malloc(SZ);
- memset(LHS, 0, SZ);
+ LHS = g_malloc0(SZ);
Signed-off-by:
Markus Armbruster <armbru@redhat.com>
Reviewed-by:
Eric Blake <eblake@redhat.com>
Reviewed-by:
Fam Zheng <famz@redhat.com>
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>