summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/detect/sdks/find_vstudio.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/detect/sdks/find_vstudio.lua b/xmake/modules/detect/sdks/find_vstudio.lua
index 2ffe2bdf1..127fb1322 100644
--- a/xmake/modules/detect/sdks/find_vstudio.lua
+++ b/xmake/modules/detect/sdks/find_vstudio.lua
@@ -398,9 +398,9 @@ function _check_vcvarsall_env(vars)
for _, name in ipairs(check_vars) do
local value_org = _env_orgs[name]
if value_org == nil then
- value_org = os.getenv(name)
- if value_org then
- _env_orgs[name] = path.splitenv(value_org)
+ local value_str = os.getenv(name)
+ if value_str then
+ _env_orgs[name] = path.splitenv(value_str)
else
_env_orgs[name] = false
end