Updated with suggestions from @zimmerle for code style

This commit is contained in:
Chaim Sanders 2015-11-23 09:28:31 -05:00 committed by Felipe Zimmerle
parent b3ab9a4084
commit e38a468a26

View File

@ -288,7 +288,7 @@ int Assay::processURI(const char *uri, const char *protocol,
std::string parsedURI = uri;
// The more popular case is without domain
if (m_uri_decoded.at(1) != '/'){
if (!m_uri_decoded.empty() && m_uri_decoded.at(1) != '/') {
bool fullDomain = true;
size_t scheme = m_uri_decoded.find(":")+1;
if (scheme==std::string::npos) {