diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-12 12:17:50 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-12 12:23:44 +0200 |
commit | 08699edbe7da24163b30d2113b3caaf40fcde01c (patch) | |
tree | 53a89e86347af35ad1c105cb1b06e9595e6b522e | |
parent | f4b55785072790b47862fa4b7e029396804d6abb (diff) |
huawei: avoid possible use of disposed memory
'str' is already freed when launching the warning, use the 'a' value instead.
-rw-r--r-- | plugins/mm-modem-huawei-gsm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mm-modem-huawei-gsm.c b/plugins/mm-modem-huawei-gsm.c index eea0629c..b5f57efc 100644 --- a/plugins/mm-modem-huawei-gsm.c +++ b/plugins/mm-modem-huawei-gsm.c @@ -689,7 +689,7 @@ handle_mode_change (MMAtSerialPort *port, } else if (a == 0) act = MM_MODEM_GSM_ACCESS_TECH_UNKNOWN; else { - mm_warn ("Couldn't parse mode change value: '%s'", str); + mm_warn ("Couldn't parse mode change value: '%d'", a); return; } @@ -919,4 +919,3 @@ mm_modem_huawei_gsm_class_init (MMModemHuaweiGsmClass *klass) gsm_class->get_access_technology = get_access_technology; gsm_class->do_enable_power_up_done = do_enable_power_up_done; } - |