aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/huawei/mm-broadband-modem-huawei.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/huawei/mm-broadband-modem-huawei.c b/plugins/huawei/mm-broadband-modem-huawei.c
index 55904826..3b500302 100644
--- a/plugins/huawei/mm-broadband-modem-huawei.c
+++ b/plugins/huawei/mm-broadband-modem-huawei.c
@@ -2945,12 +2945,12 @@ huawei_voice_received_dtmf (MMPortSerialAt *port,
GMatchInfo *match_info,
MMBroadbandModemHuawei *self)
{
- gchar *key;
+ gchar *key = g_match_info_fetch (match_info, 1);
- key = g_match_info_fetch (match_info, 1);
+ if( key ) {
+ mm_dbg ("[%s:%d][^DDTMF] Received DTMF '%s'", __func__, __LINE__, key);
- if( key && key[0] ) {
- mm_dbg ("[%s:%d][^DDTMF] Received DTMF '%c'", __func__, __LINE__, key[0]);
+ mm_iface_modem_voice_received_dtmf(MM_IFACE_MODEM_VOICE(self), key);
}
}