GIFTranslator: check if NULL before accessing member
This commit is contained in:
parent
4ac43a1be4
commit
c14b552e41
@ -570,7 +570,8 @@ GIFLoad::MemblockAllocate(int size)
|
||||
unsigned char* value = block->data;
|
||||
block->offset = size;
|
||||
block->next = NULL;
|
||||
last->next = block;
|
||||
if (last != NULL)
|
||||
last->next = block;
|
||||
|
||||
return value;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user