summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/detect/tools/find_curl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_curl.lua b/xmake/modules/detect/tools/find_curl.lua
index 4b613311d..b5c13b40c 100644
--- a/xmake/modules/detect/tools/find_curl.lua
+++ b/xmake/modules/detect/tools/find_curl.lua
@@ -45,7 +45,7 @@ function main(opt)
-- find program version
local version = nil
- if opt and opt.version then
+ if program and opt and opt.version then
version = find_programver(program, opt)
end