From c8ec731043d6dc8429597062254dc669cae4ff5c Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Mon, 23 Jan 2017 23:08:15 -0800 Subject: [PATCH] ublox: fix uninitialized variable issue This patch fixes an uninitialized variable issue in mm_ublox_parse_ugcntrd_response_for_cid(), which uses an uninitialized `match_info' when `in_cid' is invalid. --- plugins/ublox/mm-modem-helpers-ublox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ublox/mm-modem-helpers-ublox.c b/plugins/ublox/mm-modem-helpers-ublox.c index eaaed550..96ac4702 100644 --- a/plugins/ublox/mm-modem-helpers-ublox.c +++ b/plugins/ublox/mm-modem-helpers-ublox.c @@ -970,7 +970,7 @@ mm_ublox_parse_ugcntrd_response_for_cid (const gchar *response, GError **error) { GRegex *r; - GMatchInfo *match_info; + GMatchInfo *match_info = NULL; GError *inner_error = NULL; guint session_tx_bytes = 0; guint session_rx_bytes = 0;