config: fix crash in assertion during NetworkManager --print-config
Fixes:f6345180b1
('core/config: fix duplicate entires in `NetworkManager --print-config` output') (cherry picked from commit5472f28a40
)
This commit is contained in:

committed by
Lubomir Rintel

parent
19247325bc
commit
41a5cb5308
@@ -849,7 +849,7 @@ nm_config_data_log(const NMConfigData *self,
|
|||||||
/* We require that the default values are grouped by their "group".
|
/* We require that the default values are grouped by their "group".
|
||||||
* That is, all default values for a certain "group" are close to
|
* That is, all default values for a certain "group" are close to
|
||||||
* each other in the list. Assert for that. */
|
* each other in the list. Assert for that. */
|
||||||
for (g2 = g + 1; g2 < groups_full->len; g2++) {
|
for (g2 = g + 1; g2 < G_N_ELEMENTS(default_values); g2++) {
|
||||||
nm_assert(!nm_streq(default_values[g - 1].group, default_values[g2].group));
|
nm_assert(!nm_streq(default_values[g - 1].group, default_values[g2].group));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user