summaryrefslogtreecommitdiff
path: root/datetime.cc
diff options
context:
space:
mode:
Diffstat (limited to 'datetime.cc')
-rw-r--r--datetime.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/datetime.cc b/datetime.cc
index f5d071c3..74efce89 100644
--- a/datetime.cc
+++ b/datetime.cc
@@ -107,7 +107,7 @@ static void parse_inclusion_specifier(const std::string& word,
struct std::tm when;
if (! parse_date_mask(word.c_str(), &when))
- throw datetime_error(std::string("Could not parse date mask: ") + word);
+ throw new datetime_error(std::string("Could not parse date mask: ") + word);
when.tm_hour = 0;
when.tm_min = 0;