mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 17:40:08 +01:00
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); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
f2ebf6dfef
commit
bdfa7d882e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue