mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
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>
This commit is contained in:
parent
5c98d1cee0
commit
4b68c982e2
@ -711,7 +711,7 @@ dnsmasqCapsNewFromBinary(void)
|
||||
const char *
|
||||
dnsmasqCapsGetBinaryPath(dnsmasqCaps *caps)
|
||||
{
|
||||
return caps ? caps->binaryPath : DNSMASQ;
|
||||
return caps->binaryPath;
|
||||
}
|
||||
|
||||
/** dnsmasqDhcpHostsToString:
|
||||
|
Loading…
Reference in New Issue
Block a user