From 225211ff137d54d7cd5c23b7be990756114f7263 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 17 Jun 2019 14:48:55 +0200 Subject: 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 --- src/portable.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v0.12