[PATCH 12/19] virHashAddOrUpdateEntry: Simplify allocation of new entry

Ján Tomko jtomko at redhat.com
Mon Feb 3 12:42:01 UTC 2020


On Fri, Jan 31, 2020 at 03:31:16PM +0100, Peter Krempa wrote:
>Use g_new0 and skip checking of the return value of keyCopy callback
>as both are bound to return a valid pointer.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/util/virhash.c | 9 ++-------
> 1 file changed, 2 insertions(+), 7 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200203/cf29ed0e/attachment-0001.sig>


More information about the libvir-list mailing list