code style

This commit is contained in:
Nguyen Anh Quynh 2014-12-15 11:22:46 +08:00
parent dfde75c379
commit 611b0c5c22
1 changed files with 3 additions and 3 deletions

6
cs.c
View File

@ -447,12 +447,12 @@ size_t cs_disasm(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, si
total_size = sizeof(cs_insn) * cache_size;
total = cs_mem_malloc(total_size);
if (total == NULL)
{
//malloc failed
if (total == NULL) {
// insufficient memory
handle->errnum = CS_ERR_MEM;
return 0;
}
insn_cache = total;
while (size > 0) {