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.
This commit is contained in:
Thomas Haller 2020-12-06 14:40:25 +01:00
parent c9898dc9ae
commit cd0e328f7e
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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;