From 4bb601dd2f6b522e0881a5e8b081bd104b7bfd2c Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Tue, 1 Nov 2022 12:19:57 +0100 Subject: iface-modem-3gpp-profile-manager: Initialize autofreed string to NULL This avoids compiler warnings when using -Wmaybe-uninitialized Closes: #653 --- src/mm-iface-modem-3gpp-profile-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mm-iface-modem-3gpp-profile-manager.c') diff --git a/src/mm-iface-modem-3gpp-profile-manager.c b/src/mm-iface-modem-3gpp-profile-manager.c index 36c850e1..e0647060 100644 --- a/src/mm-iface-modem-3gpp-profile-manager.c +++ b/src/mm-iface-modem-3gpp-profile-manager.c @@ -85,7 +85,7 @@ profile_manager_fail_if_connected_bearer (MMIfaceModem3gppProfileManager *self, g_set_error (error, MM_CORE_ERROR, MM_CORE_ERROR_CONNECTED, "Cannot use profile %d: found an already connected bearer", profile_id); } else if (g_strcmp0 (index_field, "apn-type") == 0) { - g_autofree gchar *apn_type_str; + g_autofree gchar *apn_type_str = NULL; apn_type_str = mm_bearer_apn_type_build_string_from_mask (apn_type); g_set_error (error, MM_CORE_ERROR, MM_CORE_ERROR_CONNECTED, -- cgit v1.2.3-70-g09d2