From b3ab230aac83a81e3ba0526aeaa295f614a97862 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Sun, 6 Aug 2017 01:11:34 +0100 Subject: [PATCH] gdkdisplay: Remove a pointless assignment https://bugzilla.gnome.org/show_bug.cgi?id=784016 --- gdk/gdkdisplay.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index cf61a63367..09b95eaeff 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -2053,9 +2053,7 @@ gdk_error_trap_pop_internal (gboolean need_code) result = 0; for (l = trap->displays; l != NULL; l = l->next) { - gint code = 0; - - code = class->pop_error_trap (l->data, !need_code); + gint code = class->pop_error_trap (l->data, !need_code); /* we use the error on the last display listed, why not. */ if (code != 0)