[gtk+] testgtk: Remove pointless code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testgtk: Remove pointless code
- Date: Sat, 18 Jul 2015 00:26:32 +0000 (UTC)
commit ccfacb383ca39d47b70427ffa4b268a5b8baed29
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 17 19:54:09 2015 -0400
testgtk: Remove pointless code
The display is getting overwritten immediately. Pointed out by
coverity.
tests/testgtk.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index f7aee23..eeb8c17 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -5630,7 +5630,7 @@ static void
screen_display_check (GtkWidget *widget, ScreenDisplaySelection *data)
{
const gchar *display_name;
- GdkDisplay *display = gtk_widget_get_display (widget);
+ GdkDisplay *display;
GtkWidget *dialog;
GdkScreen *new_screen = NULL;
GdkScreen *current_screen = gtk_widget_get_screen (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]