mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 04:48:10 +02:00
keyfile: fix crash due to uninitialized variable when reading invalid connection
Fixes: 2bfccab710
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
83479263c4
commit
722712b0df
1 changed files with 1 additions and 1 deletions
|
|
@ -1163,7 +1163,7 @@ read_one_setting_value (NMSetting *setting,
|
||||||
static NMSetting *
|
static NMSetting *
|
||||||
read_setting (GKeyFile *file, const char *keyfile_path, const char *group)
|
read_setting (GKeyFile *file, const char *keyfile_path, const char *group)
|
||||||
{
|
{
|
||||||
NMSetting *setting;
|
NMSetting *setting = NULL;
|
||||||
ReadInfo info = { file, keyfile_path };
|
ReadInfo info = { file, keyfile_path };
|
||||||
const char *alias;
|
const char *alias;
|
||||||
GType type;
|
GType type;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue