summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-09-11 00:18:17 -0700
committerOri Bernstein <ori@eigenstate.org>2016-09-11 00:18:17 -0700
commitad5711a80b9aad68050dfb4ae1035e25d7d51942 (patch)
treea0bc6fd85357e596c5d5b57b73c64fe3e97406d3
parent332e6294f82885227cef60706b6cdb271e27514a (diff)
downloadmc-ad5711a80b9aad68050dfb4ae1035e25d7d51942.tar.gz
Initialize vars correctly in inifile tests.
-rw-r--r--lib/inifile/test/inifile.myr2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/inifile/test/inifile.myr b/lib/inifile/test/inifile.myr
index 36a2df6..f3c7a98 100644
--- a/lib/inifile/test/inifile.myr
+++ b/lib/inifile/test/inifile.myr
@@ -41,6 +41,8 @@ const itersects = {
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++