diff options
Diffstat (limited to 'graphics/asymptote/lspserv.cc')
-rw-r--r-- | graphics/asymptote/lspserv.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/asymptote/lspserv.cc b/graphics/asymptote/lspserv.cc index f544261d47..90dcc6961d 100644 --- a/graphics/asymptote/lspserv.cc +++ b/graphics/asymptote/lspserv.cc @@ -91,7 +91,8 @@ std::string wslUnix2Dos(std::string const& unixPath) #define PATH_MAX 4096 #endif char actPath[PATH_MAX]; - (void) realpath(unixPath.c_str(), actPath); + if(!realpath(unixPath.c_str(), actPath)) + return ""; std::string fullPath(actPath); if (fullPath.length() >= 7) // /mnt/ |