aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Borges <felipeborges@gnome.org>2021-05-27 15:05:55 +0200
committerFelipe Borges <felipeborges@gnome.org>2021-05-27 15:05:55 +0200
commit0b8607bc5dc4cce16ebb7c6a7bd71dfb3032d978 (patch)
treeda4a95be0bfadbbf4143b3d6a885580b713b704b
parent695e9932db9cdf9351021ca4c6067de5712cdceb (diff)
cinterion: avoid maybe-uninitialized warning by GCC 10
Reported at https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1371
-rw-r--r--plugins/cinterion/mm-modem-helpers-cinterion.c2
1 files changed, 1 insertions, 1 deletions
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.