From 97c98d5a32aeffe2c19f4e59e59ecbef6d8f8329 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 9 Apr 2008 14:03:16 +0000 Subject: Removed typo and cleaned up the code. git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@977 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shorewall-model.lua') diff --git a/shorewall-model.lua b/shorewall-model.lua index 7dee572..4acb9da 100644 --- a/shorewall-model.lua +++ b/shorewall-model.lua @@ -48,7 +48,7 @@ local function read_config(file) local filecontent = fs.read_file_as_array(path) local output = {} for k,v in pairs(filecontent) do - if not string.find ( v, "^[;#].*" ) then + if not string.find ( v, "^[;#].*" ) and not (string.find (v, "^%s*$")) then table.insert(output, v) end end -- cgit v1.2.3