]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vsh: Don't check for OOM in vshGetTypedParamValue()
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 24 Sep 2021 09:15:10 +0000 (11:15 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 24 Sep 2021 10:40:48 +0000 (12:40 +0200)
commitbf9074c6a872112ab2be472142be325a7ce595bc
tree865dee715463345e598b9b4776886ba8f8c6f07a
parent40f5c8679a081e43cc9349f341330dbac17a99db
vsh: Don't check for OOM in vshGetTypedParamValue()

Both function description and function itself mention check for
OOM which can't happen really. There was a bug in glib where
g_strdup_*() might have not aborted on OOM, but we have our own
implementation when dealing with broken glib (see
vir_g_strdup_printf()). Therefore, checking for OOM is redundant
and can never be true.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/vsh.c