fixed assertion

This commit is contained in:
John Wiegley 2004-09-27 00:12:10 -04:00
parent f8a62c444f
commit eb6861e192

View file

@ -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) {