summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2017-11-10 16:10:28 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2017-11-10 16:11:25 +0100
commitbdfa7d882e9d12d0b1dea02bcaba77f26b6dcf82 (patch)
tree5707a3f49f29960ace1e3570a6e148ce768abb1b
parentf2ebf6dfeffd5ae81ea2b546ebe3ad86321ada82 (diff)
downloadNetworkManager-bdfa7d882e9d12d0b1dea02bcaba77f26b6dcf82.tar.gz
device: silent compiler warning
Fix the following warning: src/devices/nm-device.c: In function ‘activation_source_schedule’: src/devices/nm-device.c:4995:9: error: ‘source_func’ may be used uninitialized in this function [-Werror=maybe-uninitialized] new_id = g_idle_add (source_func, self); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r--src/devices/nm-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index bb624adf1b..010172dc06 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -4975,7 +4975,7 @@ static void
activation_source_schedule (NMDevice *self, ActivationHandleFunc func, int addr_family)
{
ActivationHandleData *act_data;
- GSourceFunc source_func;
+ GSourceFunc source_func = NULL;
guint new_id = 0;
act_data = activation_source_get_by_family (self, addr_family, &source_func);