mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 21:00:16 +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);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(cherry picked from commit bdfa7d882e)
This commit is contained in:
parent
f8266cfde9
commit
6dc6b0f3d8
1 changed files with 1 additions and 1 deletions
|
|
@ -4974,7 +4974,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