From 731e06180fc37f51da797bd58ce01700a4faa32a Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 13 Jun 2019 22:44:41 +0800 Subject: fix find_curl --- xmake/modules/detect/tools/find_curl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1