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
1 changed files with 1 additions and 1 deletions

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);
}