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:
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…
x
Reference in New Issue
Block a user