]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: hash: Use g_new0 for allocating hash internals
authorPeter Krempa <pkrempa@redhat.com>
Tue, 28 Jan 2020 12:34:43 +0000 (13:34 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 31 Jan 2020 13:28:28 +0000 (14:28 +0100)
commit50f7483a0d69906e90849f7f0a30f3f535021852
tree9217692867f0b63b3c2a67b6ef94dc697fa4279f
parentb918bfba6f3ea06eff6b594450a42d2563083116
util: hash: Use g_new0 for allocating hash internals

Use the glib helpers and remove the mention of returning NULL on failure
of virHashNew, virHashCreate and virHashCreateFull.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virhash.c