Fix missing program name in 'icinga2 --version'

fixes #8657
This commit is contained in:
Gunnar Beutner 2015-03-09 15:02:53 +01:00
parent 6176d3bc8c
commit bcf4c46079
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ int Main(void)
String appName;
try {
Utility::BaseName(Application::GetArgV()[0]);
appName = Utility::BaseName(Application::GetArgV()[0]);
} catch (const std::bad_alloc&) {
Log(LogCritical, "icinga-app", "Allocation failed.");
return EXIT_FAILURE;