[icinga-checkins] icinga.org: icinga2/master: Fixed incorrect parameters for memset().

git at icinga.org git at icinga.org
Wed Jan 30 20:49:36 CET 2013


Module: icinga2
Branch: master
Commit: b27465feae3dad4e4aaf1cfd62a458e63b4f0619
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=b27465feae3dad4e4aaf1cfd62a458e63b4f0619

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Wed Jan 30 20:49:25 2013 +0100

Fixed incorrect parameters for memset().

---

 lib/base/application.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/base/application.cpp b/lib/base/application.cpp
index dcef64e..db5a17e 100644
--- a/lib/base/application.cpp
+++ b/lib/base/application.cpp
@@ -354,7 +354,7 @@ void Application::ExceptionHandler(void)
 
 #ifndef _WIN32
 	struct sigaction sa;
-	memset(&sa, sizeof(sa), 0);
+	memset(&sa, 0, sizeof(sa));
 	sa.sa_handler = SIG_DFL;
 	sigaction(SIGABRT, &sa, NULL);
 #endif /* _WIN32 */





More information about the icinga-checkins mailing list