(svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails

This commit is contained in:
smatz
2009-02-24 20:59:17 +00:00
parent 8beca127dd
commit d73c1fa7bf
10 changed files with 5 additions and 50 deletions

View File

@@ -75,8 +75,6 @@ struct PersistentStorageArray : BaseStorageArray {
/* We do not have made a backup; lets do so */
if (this->prev_storage != NULL) {
this->prev_storage = MallocT<TYPE>(SIZE);
if (this->prev_storage == NULL) return;
memcpy(this->prev_storage, this->storage, sizeof(this->storage));
/* We only need to register ourselves when we made the backup