summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-17 03:09:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-17 03:09:46 -0400
commitb00999893006891affccc15cfd5d60b9adb7af8c (patch)
tree3cc5383dc127cd3a187a8e830cd8fa3c72ce455a /textual.cc
parentc0d7feac7f4af1b3535834f511e2e9ef2c2f7cb0 (diff)
downloadfork-ledger-b00999893006891affccc15cfd5d60b9adb7af8c.tar.gz
fork-ledger-b00999893006891affccc15cfd5d60b9adb7af8c.tar.bz2
fork-ledger-b00999893006891affccc15cfd5d60b9adb7af8c.zip
if NO_CLEANUP is defined in the Makefile (now default), no cleanup is done
Diffstat (limited to 'textual.cc')
-rw-r--r--textual.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/textual.cc b/textual.cc
index 7cb5181c..03953141 100644
--- a/textual.cc
+++ b/textual.cc
@@ -366,7 +366,7 @@ unsigned int parse_textual_journal(std::istream& in, journal_t * journal,
char * n = next_element(p, true);
last_desc = n ? n : "";
- static struct std::tm when;
+ struct std::tm when;
if (strptime(date.c_str(), "%Y/%m/%d %H:%M:%S", &when)) {
time_in = std::mktime(&when);
last_account = account_stack.front()->find_account(p);
@@ -392,7 +392,7 @@ unsigned int parse_textual_journal(std::istream& in, journal_t * journal,
date += " ";
date += time;
- static struct std::tm when;
+ struct std::tm when;
if (strptime(date.c_str(), "%Y/%m/%d %H:%M:%S", &when)) {
entry_t * curr = new entry_t;
curr->date = std::mktime(&when);