diff options
author | Ben Chan <benchan@chromium.org> | 2017-01-23 23:08:15 -0800 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-01-24 11:07:51 +0100 |
commit | c8ec731043d6dc8429597062254dc669cae4ff5c (patch) | |
tree | b129edc3d4e64989307a18a05e78a8b12cd5c586 /plugins/ublox/mm-modem-helpers-ublox.c | |
parent | 4e5d8d7e8c0ce16e31d3c98710361eed1cf9f87c (diff) |
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.
Diffstat (limited to 'plugins/ublox/mm-modem-helpers-ublox.c')
-rw-r--r-- | plugins/ublox/mm-modem-helpers-ublox.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |