mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 12:52:37 +00:00
fix
This commit is contained in:
parent
0b3f7d18ef
commit
5eae4e2294
@ -345,10 +345,10 @@ int decompressFiles(int input_fd, char * path, char * name, bool & have_compress
|
||||
int read_exe_path(char *exe, size_t buf_sz)
|
||||
{
|
||||
uint32_t size = static_cast<uint32_t>(buf_sz);
|
||||
char apple[size];
|
||||
if (_NSGetExecutablePath(apple, &size) != 0)
|
||||
std::vector<char> apple(size);
|
||||
if (_NSGetExecutablePath(apple.data(), &size) != 0)
|
||||
return 1;
|
||||
if (realpath(apple, exe) == nullptr)
|
||||
if (realpath(apple.data(), exe) == nullptr)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user