mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-11 04:50:33 +01:00
libnm-glib: initialize NMRemoteSettings in nm_remote_settings_new() (rh #806664)
The object was not initialized after creation in nm_remote_settings_new(). This
was a regression caused by 762df85234.
This commit is contained in:
parent
876f318ee8
commit
dd0460697c
1 changed files with 6 additions and 1 deletions
|
|
@ -728,7 +728,12 @@ properties_changed_cb (DBusGProxy *proxy,
|
|||
NMRemoteSettings *
|
||||
nm_remote_settings_new (DBusGConnection *bus)
|
||||
{
|
||||
return g_object_new (NM_TYPE_REMOTE_SETTINGS, NM_REMOTE_SETTINGS_BUS, bus, NULL);
|
||||
NMRemoteSettings *settings;
|
||||
|
||||
settings = g_object_new (NM_TYPE_REMOTE_SETTINGS, NM_REMOTE_SETTINGS_BUS, bus, NULL);
|
||||
|
||||
_nm_remote_settings_ensure_inited (settings);
|
||||
return settings;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue