Преглед на файлове

add NULL check (#1925)

pull/1941/head
atticus преди 3 години
committed by GitHub
родител
ревизия
6d20430ccc
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. +1
    -0
      src/extras/rmem.h

+ 1
- 0
src/extras/rmem.h Целия файл

@ -276,6 +276,7 @@ static void __InsertMemNode(MemPool *const mempool, AllocList *const list, MemNo
mempool->arena.offs += iter->size;
__RemoveMemNode(list, iter);
iter = list->head;
if (iter == NULL) return;
}
const uintptr_t inode = ( uintptr_t )node;
const uintptr_t iiter = ( uintptr_t )iter;

Зареждане…
Отказ
Запис