Fix Bad Error
All checks were successful
CI / Build (AMD64) (push) Successful in 20m7s
CI / Build (ARM64) (push) Successful in 22m2s
CI / Build (ARMHF) (push) Successful in 12m34s
CI / Test (AMD64, Server) (push) Successful in 2m24s
CI / Build Example Mods (push) Successful in 1m42s
CI / Test (ARM64, Client) (push) Successful in 4m41s
CI / Test (AMD64, Client) (push) Successful in 6m15s
CI / Test (ARM64, Server) (push) Successful in 1m38s
CI / Test (ARMHF, Client) (push) Successful in 4m53s
CI / Test (ARMHF, Server) (push) Successful in 1m49s
CI / Release (push) Has been skipped

This commit is contained in:
TheBrokenRail 2024-09-22 22:22:32 -04:00
parent 65ee4d8a78
commit 00d193e732

View File

@ -26,7 +26,9 @@ void chop_last_component(std::string &str) {
// Get Binary Directory (Remember To Free)
std::string safe_realpath(const std::string &path) {
char *raw = realpath(path.c_str(), nullptr);
ALLOC_CHECK(raw);
if (raw == nullptr) {
ERR("Unable To Resolve: %s", path.c_str());
}
std::string str = raw;
free(raw);
return str;