commit | 611b0c5c223dac6b07312683f23e84fbc494d59f | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Mon Dec 15 11:22:46 2014 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Mon Dec 15 11:22:46 2014 +0800 |
tree | 007c25dc075b680ea2052f799b1e825156e11fc5 | |
parent | dfde75c3792d006c686c18895c8744cc681bf820 [diff] [blame] |
code style
diff --git a/cs.c b/cs.c index 1d1634d..c4f8c8f 100644 --- a/cs.c +++ b/cs.c
@@ -447,12 +447,12 @@ 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) {