diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2020-01-29 10:33:14 +0100 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2020-01-29 10:33:14 +0100 |
| commit | c1b3616485604f3fddfad9521cb8818cd8eece2b (patch) | |
| tree | e5ed317b0d86dcae783a9caf45415ba8be6d2ad1 /src/devices | |
| parent | a524db35ac5c2099671d16318524e277e88631be (diff) | |
| parent | 90c93214efba0966274224a93a77d235d4f8c034 (diff) | |
Merge branch 'upstream/latest' of https://salsa.debian.org/utopia-team/network-manager into upstream/latest
Diffstat (limited to 'src/devices')
| -rw-r--r-- | src/devices/wifi/nm-device-wifi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c index 65ba2bcc..98f9df25 100644 --- a/src/devices/wifi/nm-device-wifi.c +++ b/src/devices/wifi/nm-device-wifi.c @@ -1075,7 +1075,6 @@ static GPtrArray * ssids_options_to_ptrarray (GVariant *value, GError **error) { GPtrArray *ssids = NULL; - GVariant *v; const guint8 *bytes; gsize len; int num_ssids, i; @@ -1092,6 +1091,8 @@ ssids_options_to_ptrarray (GVariant *value, GError **error) if (num_ssids) { ssids = g_ptr_array_new_full (num_ssids, (GDestroyNotify) g_bytes_unref); for (i = 0; i < num_ssids; i++) { + gs_unref_variant GVariant *v = NULL; + v = g_variant_get_child_value (value, i); bytes = g_variant_get_fixed_array (v, &len, sizeof (guint8)); if (len > 32) { |