summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-12-06 14:40:25 +0100
committerThomas Haller <thaller@redhat.com>2020-12-06 14:40:28 +0100
commitcd0e328f7e962d48f986c10f1a6e16ca41cdd2b6 (patch)
tree31efaff1f12a640fbcc6417c09063e4d533f825e
parentc9898dc9ae268acc04d3c21eda73c0c360510da3 (diff)
downloadNetworkManager-cd0e328f7e962d48f986c10f1a6e16ca41cdd2b6.tar.gz
l3cfg: avoid "-Werror=maybe-uninitialized" warning in _load_link()
It's not actually an issue, but the compiler might think that we use nacd_old_addr without initialization.
-rw-r--r--src/nm-l3cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nm-l3cfg.c b/src/nm-l3cfg.c
index 54fdacb619..de5f80e5a2 100644
--- a/src/nm-l3cfg.c
+++ b/src/nm-l3cfg.c
@@ -686,8 +686,8 @@ _load_link(NML3Cfg *self, gboolean initial)
gboolean nacd_changed;
gboolean nacd_new_valid;
gboolean nacd_old_valid;
- const guint8 * nacd_old_addr;
- const guint8 * nacd_new_addr;
+ const guint8 * nacd_old_addr = NULL;
+ const guint8 * nacd_new_addr = NULL;
gboolean nacd_link_now_up;
AcdData * acd_data;