sashi cli realpath condition fix.

This commit is contained in:
ravinsp
2022-02-02 10:13:32 +05:30
parent 9c31615333
commit af631023f5

View File

@@ -105,7 +105,7 @@ int parse_cmd(int argc, char **argv)
// Take the realpath of sashi cli exec path.
{
std::array<char, PATH_MAX> buffer;
if (!realpath(argv[0], buffer.data()))
if (realpath(argv[0], buffer.data()))
{
exec_dir = dirname(buffer.data());
}