aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-3gpp-profile-manager.c
diff options
context:
space:
mode:
authorEvangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>2022-11-01 12:19:57 +0100
committerEvangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>2022-11-01 14:09:32 +0100
commit4bb601dd2f6b522e0881a5e8b081bd104b7bfd2c (patch)
treef22ab6cddb1153d4e1b24041da04d4e9176288d3 /src/mm-iface-modem-3gpp-profile-manager.c
parentc7afdc5375d0c26bad709e5fe0d90b8ad166f849 (diff)
iface-modem-3gpp-profile-manager: Initialize autofreed string to NULL
This avoids compiler warnings when using -Wmaybe-uninitialized Closes: #653
Diffstat (limited to 'src/mm-iface-modem-3gpp-profile-manager.c')
-rw-r--r--src/mm-iface-modem-3gpp-profile-manager.c2
1 files changed, 1 insertions, 1 deletions
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,