shithub: mc

Download patch

ref: b5d42225dec46ce9a0a0d6eaf59c442952455b47
parent: 8cb3f72ad2c0fe747e5178b7d593380550a07f76
author: Ori Bernstein <[email protected]>
date: Sun Dec 13 17:31:28 EST 2015

Initialize ret() to 0.

	Fix scan-build warning.

--- a/mi/match.c
+++ b/mi/match.c
@@ -425,6 +425,7 @@
 
 	last = NULL;
 	nlast = 0;
+	ret = 0;
 	if (addpat(p, v, start, next, cap, ncap, &last, &nlast))
 		ret = 1;