mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-12 20:30:34 +01:00
supplicant: use nm_ref_string_reset_str() in _properties_changed_main()
This commit is contained in:
parent
bd84ba31a5
commit
a99de89745
1 changed files with 1 additions and 4 deletions
|
|
@ -1969,11 +1969,8 @@ _properties_changed_main(NMSupplicantInterface *self, GVariant *properties)
|
|||
|
||||
if (nm_g_variant_lookup(properties, "CurrentBSS", "&o", &v_s)) {
|
||||
v_s = nm_dbus_path_not_empty(v_s);
|
||||
if (!nm_ref_string_equal_str(priv->current_bss, v_s)) {
|
||||
nm_ref_string_unref(priv->current_bss);
|
||||
priv->current_bss = nm_ref_string_new(v_s);
|
||||
if (nm_ref_string_reset_str(&priv->current_bss, v_s))
|
||||
do_notify_current_bss = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
if (nm_g_variant_lookup(properties, "ApIsolate", "&s", &v_s))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue