mirror of
https://github.com/citra-emu/citra-canary.git
synced 2024-12-22 23:25:31 +00:00
web_service: avoid undefined behavior assert of std::string::back (#7347)
Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
This commit is contained in:
parent
a177769c3b
commit
da9f382d2c
|
@ -30,7 +30,7 @@ struct Client::Impl {
|
|||
jwt = jwt_cache.jwt;
|
||||
}
|
||||
// normalize host expression
|
||||
if (this->host.back() == '/') {
|
||||
if (!this->host.empty() && this->host.back() == '/') {
|
||||
static_cast<void>(this->host.pop_back());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue