GNU bug report logs - #25338
[PATCH] Remove local variable with only one usage

Previous Next

Package: emacs;

Reported by: Chris Gregory <czipperz <at> gmail.com>

Date: Mon, 2 Jan 2017 21:51:01 UTC

Severity: wishlist

Tags: notabug, patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Chris Gregory <czipperz <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Remove local variable with only one usage
Date: Mon, 02 Jan 2017 13:50:01 -0800
-- 
Chris Gregory

diff --git a/src/term.c b/src/term.c
index c067a86d18..0e8ad60de4 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3426,10 +3426,7 @@ tty_menu_last_menubar_item (struct frame *f)
 
       while (i < ASIZE (items))
 	{
-	  Lisp_Object str;
-
-	  str = AREF (items, i + 1);
-	  if (NILP (str))
+	  if (NILP (AREF (items, i + 1)))
 	    break;
 	  i += 4;
 	}




This bug report was last modified 8 years and 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.