[icinga-checkins] icinga.org: icinga2/master: Fix incorrect variable name.

git at icinga.org git at icinga.org
Thu Apr 18 08:24:28 CEST 2013


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Apr 18 08:24:22 2013 +0200

Fix incorrect variable name.

---

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

diff --git a/lib/icinga/legacytimeperiod.cpp b/lib/icinga/legacytimeperiod.cpp
index a16e27b..d8f3176 100644
--- a/lib/icinga/legacytimeperiod.cpp
+++ b/lib/icinga/legacytimeperiod.cpp
@@ -228,7 +228,7 @@ void LegacyTimePeriod::ParseTimeSpec(const String& timespec, tm *begin, tm *end,
 			if (tokens.size() > 1)
 				FindNthWeekday(wday, n, end);
 			else
-				end->tm_mday += - begin->tm_wday + wday;
+				end->tm_mday += - end->tm_wday + wday;
 
 			end->tm_hour = 0;
 			end->tm_min = 0;





More information about the icinga-checkins mailing list