display: fix null pointer dereference

removing unused GError
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-02-05 00:07:48 +01:00
parent f8cd126d6f
commit 71f9e636b3

View File

@@ -438,13 +438,11 @@ insert_text_cb (GtkEditable *editable,
static void
calls_call_display_init (CallsCallDisplay *self)
{
g_autoptr(GError) err = NULL;
gtk_widget_init_template (GTK_WIDGET (self));
if (!call_audio_is_inited ())
{
g_critical ("libcallaudio not initialized: %s", err->message);
g_critical ("libcallaudio not initialized");
gtk_widget_set_sensitive (GTK_WIDGET (self->speaker), FALSE);
gtk_widget_set_sensitive (GTK_WIDGET (self->mute), FALSE);
}