shithub: mc

Download patch

ref: ad5711a80b9aad68050dfb4ae1035e25d7d51942
parent: 332e6294f82885227cef60706b6cdb271e27514a
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Sep 10 20:18:17 EDT 2016

Initialize vars correctly in inifile tests.

--- a/lib/inifile/test/inifile.myr
+++ b/lib/inifile/test/inifile.myr
@@ -41,6 +41,8 @@
 	var somesect, anothersection
 
 	ini = std.try(inifile.load("test/test.ini"))
+	somesect=0
+	anothersection=0
 	for k in inifile.bysection(ini)
 		match k
 		| "somesect":	somesect++