diff options
| author | Michael Biebl <biebl@debian.org> | 2020-01-15 02:57:26 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2020-01-15 02:57:26 +0100 |
| commit | 90c93214efba0966274224a93a77d235d4f8c034 (patch) | |
| tree | 0ccdd9703068070bb0d940588cc4e21317d30a74 /src/devices/wifi/nm-device-wifi.c | |
| parent | 724bcc5c7be3aed3646ed2b2989c34d438217176 (diff) | |
New upstream version 1.22.4 upstream/1.22.4
Diffstat (limited to 'src/devices/wifi/nm-device-wifi.c')
| -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) { |