diff --git a/libretroshare/src/jsonapi/jsonapi.cpp b/libretroshare/src/jsonapi/jsonapi.cpp index 72209d218..5ed50d607 100644 --- a/libretroshare/src/jsonapi/jsonapi.cpp +++ b/libretroshare/src/jsonapi/jsonapi.cpp @@ -133,7 +133,7 @@ bool RsJsonApi::parseToken( const auto tkLen = clear_token.length(); for(uint32_t i=0; i < tkLen; ++i) - if(clear_token[i] == ':') colonIndex = i; + if(clear_token[i] == ':') { colonIndex = i; break; } user = clear_token.substr(0, colonIndex);