Browse Source

stdlib: fix bad memset in calloc()

master 1.2.2
Lephenixnoir 2 months ago
parent
commit
df4c13b007
Signed by: Lephenixnoir GPG Key ID: 1BBA026E13FC0495
  1. 2
      src/libc/stdlib/calloc.c

2
src/libc/stdlib/calloc.c

@ -9,6 +9,6 @@ void *calloc(size_t nmemb, size_t size)
return NULL;
void *mem = malloc(total_size);
if(mem) memset(mem, 0, size);
if(mem) memset(mem, 0, total_size);
return mem;
}

Loading…
Cancel
Save