mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 05:18:23 +02:00
config: avoid segfault if there's no ignore_carrier
Just return false.
This commit is contained in:
parent
4a6f91c77c
commit
15734a4ba5
1 changed files with 3 additions and 0 deletions
|
|
@ -185,6 +185,9 @@ nm_config_get_ignore_carrier (NMConfig *config, NMDevice *device)
|
|||
int i;
|
||||
gboolean match;
|
||||
|
||||
if (!priv->ignore_carrier)
|
||||
return FALSE;
|
||||
|
||||
for (i = 0; priv->ignore_carrier[i]; i++)
|
||||
specs = g_slist_prepend (specs, priv->ignore_carrier[i]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue