Merge pull request #406 from lucaregini/master

Added NULL check
This commit is contained in:
SANO,Masatoshi 2019-12-20 01:55:23 +09:00 committed by GitHub
commit 5963f6c313
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ int sbcl_bin_expand(struct install_options* param) {
dist_path=cat(home,"src",SLASH,impl,"-",version,"-",arch,SLASH,NULL);
char* msiexec_path=msi_exec_path_from_register();
if(!file_exist_p(msiexec_path))
if(msiexec_path==NULL || !file_exist_p(msiexec_path))
{
msiexec_path="msiexec.exe";
if(!file_exist_p(msiexec_path))