summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-27 00:12:10 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-27 00:12:10 -0400
commiteb6861e192281b612e115c8b3bf240e574bca835 (patch)
tree2118627c251a4764ffad0d718c8b7a306777052f
parentf8a62c444f070b5e7f1ed00a2a322d01da729775 (diff)
downloadfork-ledger-eb6861e192281b612e115c8b3bf240e574bca835.tar.gz
fork-ledger-eb6861e192281b612e115c8b3bf240e574bca835.tar.bz2
fork-ledger-eb6861e192281b612e115c8b3bf240e574bca835.zip
fixed assertion
-rw-r--r--journal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/journal.cc b/journal.cc
index 4b33361d..2dc2576d 100644
--- a/journal.cc
+++ b/journal.cc
@@ -245,7 +245,7 @@ account_t * account_t::find_account(const std::string& name,
char buf[256];
std::string::size_type sep = name.find(':');
- assert(sep < 256);
+ assert(sep < 256|| sep == std::string::npos);
const char * first, * rest;
if (sep == std::string::npos) {