mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 04:40:13 +01:00
libnm: try to avoid coverity warning in assertion()
Coverity thinks that this could be NULL sometimes. Try to check for that to shut up the warning.
This commit is contained in:
parent
b5793b74ca
commit
f61e274df9
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ foreach_item_helper (NMSettingVpn *self,
|
|||
}
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
nm_assert (keys[i]);
|
||||
nm_assert (keys && keys[i]);
|
||||
keys[i] = g_strdup (keys[i]);
|
||||
}
|
||||
nm_assert (!keys[i]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue