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:
parent
9e1b329431
commit
5fca4e0f18
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue