summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-06-17 12:48:55 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-06-17 12:48:55 (GMT)
commit225211ff137d54d7cd5c23b7be990756114f7263 (patch)
treeec9894dd25044123c3bddbdbcb7bd9c9bfc6b862 /src
parent4628578fe856f3ccfe3ade8f702671bfa1854566 (diff)
downloadDoxygen-225211ff137d54d7cd5c23b7be990756114f7263.zip
Doxygen-225211ff137d54d7cd5c23b7be990756114f7263.tar.gz
Doxygen-225211ff137d54d7cd5c23b7be990756114f7263.tar.bz2
Bug 796582 - Doxygen has stopped working
In (the rare) case the path is not set don't try to use the pointer. regression on pull request #513
Diffstat (limited to 'src')
-rw-r--r--src/portable.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/portable.cpp b/src/portable.cpp
index e2bdf6e..3d64638 100644
--- a/src/portable.cpp
+++ b/src/portable.cpp
@@ -463,6 +463,7 @@ void portable_correct_path(void)
{
#if defined(_WIN32) && !defined(__CYGWIN__)
const char *p = portable_getenv("PATH");
+ if (!p) return; // no path nothing to correct
QCString result = substitute(p,'/','\\');
if (result!=p) portable_setenv("PATH",result.data());
#endif