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

2020-02-03 Thread Ján Tomko
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 --- src/util/virhash.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-)

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

2020-01-31 Thread Peter Krempa
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 --- src/util/virhash.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/util/virhash.c b/src/util/virhash.c index