mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 10:08:05 +02: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)
^
(cherry picked from commit 10ef61408e)
This commit is contained in:
parent
ad0400408e
commit
ad98a41399
1 changed files with 1 additions and 1 deletions
|
|
@ -490,7 +490,7 @@ update (NMDnsPlugin *plugin,
|
||||||
NMDnsDnsmasq *self = NM_DNS_DNSMASQ (plugin);
|
NMDnsDnsmasq *self = NM_DNS_DNSMASQ (plugin);
|
||||||
NMDnsDnsmasqPrivate *priv = NM_DNS_DNSMASQ_GET_PRIVATE (self);
|
NMDnsDnsmasqPrivate *priv = NM_DNS_DNSMASQ_GET_PRIVATE (self);
|
||||||
GVariantBuilder servers;
|
GVariantBuilder servers;
|
||||||
int prio, first_prio;
|
int prio, first_prio = 0;
|
||||||
const NMDnsIPConfigData *ip_data;
|
const NMDnsIPConfigData *ip_data;
|
||||||
gboolean is_first = TRUE;
|
gboolean is_first = TRUE;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue