aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--valua.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/valua.lua b/valua.lua
index 11d4741..c9589f9 100644
--- a/valua.lua
+++ b/valua.lua
@@ -54,7 +54,7 @@ function valua:new(obj)
-- __call will run only when the value is validated
self.__call = function(t,value)
local res = true
- local fres, err
+ local fres, err = nil
if value == nil and t.allow_nil then
return res, err