mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Fixed compilation on *NIX.
This commit is contained in:
parent
33d67401b9
commit
b9af44cd98
@ -348,7 +348,10 @@ string Application::GetExeDirectory(void) const
|
||||
PathEnv = getenv("PATH");
|
||||
|
||||
if (PathEnv != NULL) {
|
||||
PathEnv = Memory::StrDup(PathEnv);
|
||||
PathEnv = strdup(PathEnv);
|
||||
|
||||
if (PathEnv == NULL)
|
||||
throw bad_alloc();
|
||||
|
||||
FoundPath = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user