[PATCH 3/3] virdnsmasq: Require non NULL @caps in dnsmasqCapsGetBinaryPath()
Andrea Bolognani
abologna at redhat.com
Mon Jan 10 17:41:20 UTC 2022
On Mon, Jan 10, 2022 at 04:44:57PM +0100, Michal Privoznik wrote:
> 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 at redhat.com>
> ---
> src/util/virdnsmasq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Andrea Bolognani <abologna at redhat.com>
--
Andrea Bolognani / Red Hat / Virtualization
More information about the libvir-list
mailing list