summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-01-29 13:54:27 +0800
committerruki <[email protected]>2016-01-29 13:54:27 +0800
commitcd2a5d9e32758de3518a8bf6a55415d4552ef711 (patch)
tree37f21a405fe370fa75e982f163f9525524025fb6
parent972d3462cf7022424deff6e768ae614ba8d3a394 (diff)
fix set global value
-rw-r--r--xmake/core/base/global.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/global.lua b/xmake/core/base/global.lua
index 0017590c6..f0d76e7be 100644
--- a/xmake/core/base/global.lua
+++ b/xmake/core/base/global.lua
@@ -85,7 +85,7 @@ function global.set(name, value)
-- check
assert(global._CURRENT and global._CONFIGS)
- assert(name and value and type(value) ~= "table")
+ assert(name and value ~= nil and type(value) ~= "table")
-- set it to the current configure
global._CURRENT[name] = value