]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virCommandAddArg: Don't abort on invalid input
authorPeter Krempa <pkrempa@redhat.com>
Mon, 23 Nov 2020 08:59:54 +0000 (09:59 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 24 Nov 2020 16:59:26 +0000 (17:59 +0100)
commit6a252ab4d1cc893cb70b67f4467ebf4fc6cc47e6
tree16ccfa16b2c1848706bc98ac7bf35edef6248147
parenta42b46dd7db2cafe77010bfae55f2e4631a26844
virCommandAddArg: Don't abort on invalid input

Commit 912c6b22fc622cd7c7d29c7f8eaeb816b266daac added abort() when the
'val' parameter is NULL along with setting the error variable for the
command. We don't want to abort in this case, just set the error.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/vircommand.c