mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-23 20:20:45 +02:00
ifcfg-rh: fix possible uninitialized variable usage
This commit is contained in:
parent
a74189fd04
commit
1e3a6c1311
1 changed files with 1 additions and 0 deletions
|
|
@ -884,6 +884,7 @@ write_wired_setting (NMConnection *connection, shvarFile *ifcfg, GError **error)
|
|||
svSetValue (ifcfg, "SUBCHANNELS", NULL, FALSE);
|
||||
s390_subchannels = nm_setting_wired_get_s390_subchannels (s_wired);
|
||||
if (s390_subchannels) {
|
||||
tmp = NULL;
|
||||
if (s390_subchannels->len == 2) {
|
||||
tmp = g_strdup_printf ("%s,%s",
|
||||
(const char *) g_ptr_array_index (s390_subchannels, 0),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue