mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
PPCSymbolDB: Check SplitString result
This commit is contained in:
parent
77e77863dc
commit
bbf835b30b
@ -398,7 +398,7 @@ bool PPCSymbolDB::LoadMap(const Core::CPUThreadGuard& guard, const std::string&
|
|||||||
// Split the current name string into separate parts, and get the object name
|
// Split the current name string into separate parts, and get the object name
|
||||||
// if it exists.
|
// if it exists.
|
||||||
const std::vector<std::string> parts = SplitString(name, '\t');
|
const std::vector<std::string> parts = SplitString(name, '\t');
|
||||||
const std::string name_string(StripWhitespace(parts[0]));
|
const std::string name_string(StripWhitespace(parts.size() > 0 ? parts[0] : name));
|
||||||
const std::string object_filename_string =
|
const std::string object_filename_string =
|
||||||
parts.size() > 1 ? std::string(StripWhitespace(parts[1])) : "";
|
parts.size() > 1 ? std::string(StripWhitespace(parts[1])) : "";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user