mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
Introduce mg_calloc
This commit is contained in:
1 parent
5f1f4a0df8
commit
074ef5197b
26 files changed
+259
-313
No files matched your search
+1
-1
@@ -150,7 +150,7 @@ fwxit:
|
||||
|
||||
// try to swap (honor dual image), otherwise just overwrite
|
||||
MG_IRAM static void single_bank_swap(char *p1, char *p2, size_t s, size_t ss) {
|
||||
char *tmp = calloc(1, ss);
|
||||
char *tmp = mg_calloc(1, ss);
|
||||
// no stdlib calls here
|
||||
for (size_t ofs = 0; ofs < s; ofs += ss) {
|
||||
if (tmp != NULL)
|
||||
|
||||
Reference in new issue
Block a user