diff --git a/sashi-cli/main.cpp b/sashi-cli/main.cpp index 74b7372..0926271 100644 --- a/sashi-cli/main.cpp +++ b/sashi-cli/main.cpp @@ -105,7 +105,7 @@ int parse_cmd(int argc, char **argv) // Take the realpath of sashi cli exec path. { std::array buffer; - if (!realpath(argv[0], buffer.data())) + if (realpath(argv[0], buffer.data())) { exec_dir = dirname(buffer.data()); }