From 71f9e636b30f3286177b10bb33dcd3bb16ff22ad Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 5 Feb 2021 00:07:48 +0100 Subject: [PATCH] display: fix null pointer dereference removing unused GError --- src/calls-call-display.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/calls-call-display.c b/src/calls-call-display.c index a806fc7..fbff3cf 100644 --- a/src/calls-call-display.c +++ b/src/calls-call-display.c @@ -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); }