JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix: do not need an extra variable for a single read
authorMarkus Teich <markus.teich@stusta.mhn.de>
Sat, 22 Jun 2013 21:05:03 +0000 (23:05 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Thu, 4 Jul 2013 07:26:18 +0000 (09:26 +0200)
st.c

diff --git a/st.c b/st.c
index 66aca2d..16803ec 100644 (file)
--- a/st.c
+++ b/st.c
@@ -3375,7 +3375,6 @@ numlock(const Arg *dummy) {
 
 char*
 kmap(KeySym k, uint state) {
-       uint mask;
        Key *kp;
        int i;
 
@@ -3390,12 +3389,10 @@ kmap(KeySym k, uint state) {
        }
 
        for(kp = key; kp < key + LEN(key); kp++) {
-               mask = kp->mask;
-
                if(kp->k != k)
                        continue;
 
-               if(!match(mask, state))
+               if(!match(kp->mask, state))
                        continue;
 
                if(kp->appkey > 0) {