summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {