mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 02:30:18 +01:00
dns: fix compilation error
Fixes the following error when building with gcc 4.8.5 and address
sanitizer:
src/dns/nm-dns-dnsmasq.c: In function 'update':
src/dns/nm-dns-dnsmasq.c:506:44: error: 'first_prio' may be used uninitialized in this function [-Werror=maybe-uninitialized]
} else if (first_prio < 0 && first_prio != prio)
^
This commit is contained in:
parent
bc81efec55
commit
10ef61408e
1 changed files with 1 additions and 1 deletions
|
|
@ -487,7 +487,7 @@ update (NMDnsPlugin *plugin,
|
|||
NMDnsDnsmasq *self = NM_DNS_DNSMASQ (plugin);
|
||||
NMDnsDnsmasqPrivate *priv = NM_DNS_DNSMASQ_GET_PRIVATE (self);
|
||||
GVariantBuilder servers;
|
||||
int prio, first_prio;
|
||||
int prio, first_prio = 0;
|
||||
const NMDnsIPConfigData *ip_data;
|
||||
gboolean is_first = TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue