Move a variable to the scope where it is used.
authorayin <ayin>
Thu, 14 Feb 2008 23:51:46 +0000 (23:51 +0000)
committerayin <ayin>
Thu, 14 Feb 2008 23:51:46 +0000 (23:51 +0000)
src/command.C

index 918ebced1ae7ee40c822a6a05b2f375ad87cf341..9b71322245c6ed3806c7159c1cea574820155136 100644 (file)
@@ -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