]> granicus.if.org Git - icinga2/commitdiff
Fix missing program name in 'icinga2 --version'
authorGunnar Beutner <gunnar@beutner.name>
Mon, 9 Mar 2015 14:02:53 +0000 (15:02 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 9 Mar 2015 14:02:53 +0000 (15:02 +0100)
fixes #8657

icinga-app/icinga.cpp

index 3a7ba1442faded7d1033cc57e8f8e2015b83ecde..3325802677df47ccace3dd456986d7ea39d00607 100644 (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;