repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 009ae0be3698c9d2c108ee72b143c6ace43a3958:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 009ae0be3698c9d2c108ee72b143c6ace43a3958
Author: Emanuele Giaquinta 
Date:   Thu Feb 14 23:51:46 2008 +0000

    Move a variable to the scope where it is used.

diff --git a/src/command.C b/src/command.C
index 918ebced1ae7ee40c822a6a05b2f375ad87cf341..
index ..9b71322245c6ed3806c7159c1cea574820155136 100644
--- a/src/command.C
+++ b/src/command.C
@@ -304,7 +304,6 @@ void
 rxvt_term::key_press (XKeyEvent &ev)
 {
   int ctrl, meta, shft, len;
-  unsigned int newlen;
   KeySym keysym;
   int valid_keysym;
   char kbuf[KBUFSZ];
@@ -551,7 +550,7 @@ rxvt_term::key_press (XKeyEvent &ev)
         {
             {
               bool kp = priv_modes & PrivMode_aplKP ? !shft : shft;
-              newlen = 1;
+              unsigned int newlen = 1;
 #ifdef XK_KP_Home
               static const KeySym keypadtrans[] = {
                 XK_KP_7, // XK_KP_Home

-----END OF PAGE-----