[PATCH] ublox: fix uninitialized variable issue
Ben Chan
benchan at chromium.org
Tue Jan 24 07:08:15 UTC 2017
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;
--
2.11.0.483.g087da7b7c-goog
More information about the ModemManager-devel
mailing list