shithub: mc

Download patch

ref: b541f9642d989a75101ae9af82e32bf3f1fdd168
parent: 655dad8f92c315c5c205b3c021b19ce2916e4c9b
author: Mura Li <[email protected]>
date: Wed Apr 22 21:38:56 EDT 2020

Remove unneeded check

--- a/mi/match.c
+++ b/mi/match.c
@@ -459,8 +459,7 @@
 	switch (exprop(pat)) {
 	case Olor:
 		next = frontierdup(fs);
-		if (fs->next)
-			next->next = fs->next;
+		next->next = fs->next;
 		fs->next = next;
 		addrec(fs, pat->expr.args[1], val, path);
 		addrec(next, pat->expr.args[0], val, path);