[poincare] Escape case in Storage::destroyRecord

This commit is contained in:
Léa Saviot
2018-09-28 16:54:11 +02:00
committed by Émilie Feral
parent 1799451b80
commit 91774aff83

View File

@@ -271,6 +271,9 @@ Storage::Record::ErrorStatus Storage::setValueOfRecord(Record record, Record::Da
}
void Storage::destroyRecord(Record record) {
if (record.isNull()) {
return;
}
for (char * p : *this) {
Record currentRecord(fullNameOfRecordStarting(p));
if (record == currentRecord) {