mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 19:38:02 +02:00
config: fix a potential NULL dereference
Coverity:
src/nm-config.c:598: var_deref_op: Dereferencing null pointer "groups".
(cherry picked from commit 421cf84343)
This commit is contained in:
parent
0885e561b3
commit
57b4de25ea
1 changed files with 1 additions and 1 deletions
|
|
@ -595,7 +595,7 @@ read_config (GKeyFile *keyfile, const char *path, GError **error)
|
|||
NULL);
|
||||
}
|
||||
|
||||
for (g = 0; groups[g]; g++) {
|
||||
for (g = 0; groups && groups[g]; g++) {
|
||||
const char *group = groups[g];
|
||||
|
||||
keys = g_key_file_get_keys (kf, group, &nkeys, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue