summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/misc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index ade3f46a4..957410656 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -232,7 +232,7 @@ time_t Anope::DoTime(const Anope::string &s)
if (s.empty())
return -1;
- int amount;
+ int amount = 0;
Anope::string end;
try
@@ -261,7 +261,7 @@ time_t Anope::DoTime(const Anope::string &s)
}
catch (const ConvertException &) { }
- return 0;
+ return amount;
}
Anope::string Anope::Duration(time_t t, const NickCore *nc)