From 0b8607bc5dc4cce16ebb7c6a7bd71dfb3032d978 Mon Sep 17 00:00:00 2001 From: Felipe Borges Date: Thu, 27 May 2021 15:05:55 +0200 Subject: [PATCH] cinterion: avoid maybe-uninitialized warning by GCC 10 Reported at https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1371 --- plugins/cinterion/mm-modem-helpers-cinterion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cinterion/mm-modem-helpers-cinterion.c b/plugins/cinterion/mm-modem-helpers-cinterion.c index 67da6120..b63b67c1 100644 --- a/plugins/cinterion/mm-modem-helpers-cinterion.c +++ b/plugins/cinterion/mm-modem-helpers-cinterion.c @@ -978,7 +978,7 @@ mm_cinterion_parse_smong_response (const gchar *response, guint value = 0; GError *inner_error = NULL; g_autoptr(GMatchInfo) match_info = NULL; - g_autoptr(GRegex) regex; + g_autoptr(GRegex) regex = NULL; /* The AT^SMONG command returns a cell info table, where the second * column identifies the "GPRS status", which is exactly what we want.