From 654954c64cef24f78d66ea69f0f65ddb18611f34 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 18 Apr 2013 08:24:22 +0200 Subject: [PATCH] Fix incorrect variable name. --- lib/icinga/legacytimeperiod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/legacytimeperiod.cpp b/lib/icinga/legacytimeperiod.cpp index a16e27b61..d8f3176be 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;