mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 12:50:17 +01:00
keyfile: fix mismatched strdup/g_free
g_strdup is also NULL safe.
This commit is contained in:
parent
0b30200e4b
commit
8c6d3040dc
1 changed files with 1 additions and 1 deletions
|
|
@ -642,7 +642,7 @@ nm_settings_keyfile_plugin_new (const char *config_file)
|
|||
if (singleton) {
|
||||
priv = SC_PLUGIN_KEYFILE_GET_PRIVATE (singleton);
|
||||
|
||||
priv->conf_file = strdup (config_file);
|
||||
priv->conf_file = g_strdup (config_file);
|
||||
|
||||
/* plugin_set_hostname() has to be called *after* priv->conf_file is set */
|
||||
priv->hostname = plugin_get_hostname (singleton);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue