fixed assertion
This commit is contained in:
parent
f8a62c444f
commit
eb6861e192
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ account_t * account_t::find_account(const std::string& name,
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
||||||
std::string::size_type sep = name.find(':');
|
std::string::size_type sep = name.find(':');
|
||||||
assert(sep < 256);
|
assert(sep < 256|| sep == std::string::npos);
|
||||||
|
|
||||||
const char * first, * rest;
|
const char * first, * rest;
|
||||||
if (sep == std::string::npos) {
|
if (sep == std::string::npos) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue