Update Install.cpp

This commit is contained in:
Nikita Mikhaylov 2020-12-18 03:30:01 +03:00 committed by GitHub
parent d3c64e7528
commit 80fae17545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ int mainEntryClickHouseInstall(int argc, char ** argv)
#if defined(OS_DARWIN)
uint32_t path_length = 0;
_NSGetExecutablePath(nullptr, &path_length);
if (path_length <= 1)
if (path_length <= 1)
Exception(ErrorCodes::FILE_DOESNT_EXIST, "Cannot obtain path to the binary");
std::string path(path_length, std::string::value_type());