reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit a21b5f33d67952b0903f818ca258a28f13f386ce
parent d551e255fe79ea1e463fe757554a55bf5adf5058
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Fri, 23 Sep 2022 14:29:05 -0400

fix crash on startup if ReaPack's filename is renamed

Fixes #51

Diffstat:
Msrc/filesystem.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/filesystem.cpp b/src/filesystem.cpp @@ -203,6 +203,8 @@ Path FS::canonical(const Path &path) return path; #else char *resolved = realpath(path.join().c_str(), nullptr); + if(!resolved) + return path; Path out(resolved); free(resolved); return out;