supplicant: use nm_ref_string_reset_str() in _properties_changed_main()

This commit is contained in:
Thomas Haller 2022-01-27 18:53:23 +01:00
parent bd84ba31a5
commit a99de89745
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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))