projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avl: add blob comparator function
[project/libubox.git]
/
utils.c
diff --git
a/utils.c
b/utils.c
index 8fd19f47b01898227b08b00ec66efadb40f9ea92..91dd71e6c18dd67dcb5b24a6a93ab88dfa9d887d 100644
(file)
--- a/
utils.c
+++ b/
utils.c
@@
-43,6
+43,8
@@
void *__calloc_a(size_t len, ...)
va_end(ap1);
ptr = calloc(1, alloc_len);
+ if (!ptr)
+ return NULL;
alloc_len = 0;
foreach_arg(ap, cur_addr, cur_len, &ret, len) {
*cur_addr = &ptr[alloc_len];