From: Gunnar Beutner Date: Mon, 9 Mar 2015 14:02:53 +0000 (+0100) Subject: Fix missing program name in 'icinga2 --version' X-Git-Tag: v2.3.1~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bcf4c46079f9b8f8f952d2545439fe88162db04d;p=icinga2 Fix missing program name in 'icinga2 --version' fixes #8657 --- diff --git a/icinga-app/icinga.cpp b/icinga-app/icinga.cpp index 3a7ba1442..332580267 100644 --- a/icinga-app/icinga.cpp +++ b/icinga-app/icinga.cpp @@ -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;