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-access-point.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-access-point.c')
-rw-r--r-- | libnm-glib/nm-access-point.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm-glib/nm-access-point.c b/libnm-glib/nm-access-point.c index 53993b0728..a6218ed946 100644 --- a/libnm-glib/nm-access-point.c +++ b/libnm-glib/nm-access-point.c @@ -464,6 +464,8 @@ get_property (GObject *object, { NMAccessPoint *ap = NM_ACCESS_POINT (object); + _nm_object_ensure_inited (NM_OBJECT (object)); + switch (prop_id) { case PROP_FLAGS: g_value_set_uint (value, nm_access_point_get_flags (ap)); |