[PATCH 1/4] fix: do not need an extra variable for a single read

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Sat, 22 Jun 2013 23:05:03 +0200

---
 st.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/st.c b/st.c
index 2811876..a5d6c87 100644
--- a/st.c
+++ b/st.c
_AT_@ -3380,7 +3380,6 @@ numlock(const Arg *dummy) {
 
 char*
 kmap(KeySym k, uint state) {
-	uint mask;
 	Key *kp;
 	int i;
 
_AT_@ -3395,12 +3394,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) {
-- 
1.8.2
--------------020503010702010109060608
Content-Type: text/x-patch;
 name="0002-fix-compress-logic-expression-in-function-match.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0002-fix-compress-logic-expression-in-function-match.patch"
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Sat Jun 22 2013 - 23:12:05 CEST