4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-31 19:40:33 +08:00

Fix Bug libc/28945

- apply fix from Tom de Vries <vries@gcc.gnu.org>
  to have calloc zero out storage for nvptx calloc function
This commit is contained in:
Jeff Johnston 2022-03-07 15:35:02 -05:00
parent 9e1b329431
commit 5fca4e0f18

View File

@ -22,5 +22,5 @@ calloc (size_t size, size_t len)
void *p = malloc (size * len);
if (!p)
return p;
return memset (p, 0, len);
return memset (p, 0, size * len);
}