used wrong i/pairs

This commit is contained in:
Axel Kittenberger 2011-01-18 18:41:09 +00:00
parent ad1392691c
commit 1ada13486e
2 changed files with 5 additions and 2 deletions

View File

@ -22,7 +22,10 @@ dist_example_DATA = \
examples/limagemagic.lua \
examples/lrsync.lua \
examples/lrsyncssh.lua
TESTS = tests/l4-rsync-data.sh
TESTS = \
tests/churn-rsync.lua \
tests/churn-rsyncssh.lua \
tests/l4rsyncdata.lua
dist_man1_MANS = doc/lsyncd.1
EXTRA_DIST = doc/lsyncd.1.txt doc/lsyncd.1.xml

View File

@ -2701,7 +2701,7 @@ function runner.initialize()
lockGlobals()
-- copies simple settings with numeric keys to "key=true" settings.
for k, v in pairs(settings) do
for k, v in ipairs(settings) do
if settings[v] then
log("Error", "Double setting '"..v.."'")
os.exit(-1) -- ERRNO