mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 22:00:13 +01:00
config: minor fix in read_entire_config()
Calling read_entire_config() without passing a @cli argument would
always have caused an assert due to unset @o_config_main_file.
That is not a real problem as that situation didn't arise. Still
fix it.
(cherry picked from commit ae0608eef5)
This commit is contained in:
parent
79c80f00cc
commit
9fbd4c17fa
1 changed files with 1 additions and 2 deletions
|
|
@ -636,8 +636,7 @@ read_entire_config (const NMConfigCmdLineOptions *cli,
|
|||
g_return_val_if_fail (!error || !*error, FALSE);
|
||||
|
||||
/* First read the base config file */
|
||||
if ( cli
|
||||
&& !read_base_config (keyfile, cli->config_main_file, &o_config_main_file, error)) {
|
||||
if (!read_base_config (keyfile, cli ? cli->config_main_file : NULL, &o_config_main_file, error)) {
|
||||
g_key_file_free (keyfile);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue