summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--squid-model.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/squid-model.lua b/squid-model.lua
index eedd178..11dc7d0 100644
--- a/squid-model.lua
+++ b/squid-model.lua
@@ -864,8 +864,10 @@ dependancy_ok = function()
if cfgfile ~= nil then
line = cfgfile:read( "*l" )
- if string.sub( line, 1, 19 ) == "### ACF-SQUID-MAGIC" then
- retval = true
+ if line ~= nil then
+ if string.sub( line, 1, 19 ) == "### ACF-SQUID-MAGIC" then
+ retval = true
+ end
end
end