diff options
author | Dan Winship <danw@gnome.org> | 2012-03-28 09:06:12 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-03-28 09:06:12 -0400 |
commit | a4f450aa0bf087453a8d605db81a83368cbe3b0a (patch) | |
tree | 46e956f0ac1e6d124d4d5b1c121096fc598c9942 /libnm-glib/nm-ip4-config.c | |
parent | dd0460697c4e281fe277b53916d5251332e1aafc (diff) | |
download | NetworkManager-a4f450aa0bf087453a8d605db81a83368cbe3b0a.tar.gz |
libnm-glib: more ensure_inited() fixing
We need to do _nm_object_ensure_inited() /
_nm_remote_settings_ensure_inited() from the get_property()
implementations; in most cases, get_property() just calls another
accessor method (which will call _nm_object_ensure_inited()), but in a
few places, it reads priv->whatever directly, so we need to make sure
that it's valid.
Diffstat (limited to 'libnm-glib/nm-ip4-config.c')
-rw-r--r-- | libnm-glib/nm-ip4-config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm-glib/nm-ip4-config.c b/libnm-glib/nm-ip4-config.c index 56678545e8..862e7a01a1 100644 --- a/libnm-glib/nm-ip4-config.c +++ b/libnm-glib/nm-ip4-config.c @@ -187,6 +187,8 @@ get_property (GObject *object, NMIP4Config *self = NM_IP4_CONFIG (object); NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (self); + _nm_object_ensure_inited (NM_OBJECT (object)); + switch (prop_id) { case PROP_ADDRESSES: nm_utils_ip4_addresses_to_gvalue (priv->addresses, value); |