diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-iface-modem-voice.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mm-iface-modem-voice.c b/src/mm-iface-modem-voice.c index 9c3b84c5..592afc41 100644 --- a/src/mm-iface-modem-voice.c +++ b/src/mm-iface-modem-voice.c @@ -2813,8 +2813,10 @@ check_support_ready (MMIfaceModemVoice *self, GError *error = NULL; if (!MM_IFACE_MODEM_VOICE_GET_INTERFACE (self)->check_support_finish (self, res, &error)) { - mm_dbg ("Voice support check failed: '%s'", error->message); - g_error_free (error); + if (error) { + mm_dbg ("Voice support check failed: '%s'", error->message); + g_error_free (error); + } g_task_return_new_error (task, MM_CORE_ERROR, MM_CORE_ERROR_UNSUPPORTED, "Voice not supported"); g_object_unref (task); return; |