mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[ion/storage] Handle nullptr name when looking for a record
This commit is contained in:
@@ -156,6 +156,9 @@ Storage::Record Storage::recordWithExtensionAtIndex(const char * extension, int
|
||||
}
|
||||
|
||||
Storage::Record Storage::recordNamed(const char * fullName) {
|
||||
if (fullName == nullptr) {
|
||||
return Record();
|
||||
}
|
||||
for (char * p : *this) {
|
||||
const char * currentName = fullNameOfRecordStarting(p);
|
||||
if (strcmp(currentName, fullName) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user