]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virdnsmasq: Require non NULL @caps in dnsmasqCapsGetBinaryPath()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 10 Jan 2022 15:25:18 +0000 (16:25 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Jan 2022 14:19:47 +0000 (15:19 +0100)
commit4b68c982e283471575bacbf87302495864da46fe
tree517910a3a27abc9da2057ce8b951932bbf4f55af
parent5c98d1cee0be741a3205bb08be8bca4165259154
virdnsmasq: Require non NULL @caps in dnsmasqCapsGetBinaryPath()

First observation: There is no way that caps->binaryPath can be
NULL. Second observation: There is no caller that passes NULL.
Let's drop the ternary operator and access @caps directly.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/util/virdnsmasq.c