shithub: mc

Download patch

ref: 6e944f5fe207cd0294eaa4cd023533771fd403d8
parent: 6565eb50cfcc4e11ed5e350cdae30dc861dc0a8e
author: Mura Li <mura_li@castech.com.tw>
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);