mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-01 09:49:24 +03:00
Guarantee Ref C Buffer 0 initialization
This commit is contained in:
parent
1875f62248
commit
e9b42cc55e
@ -16,7 +16,7 @@ void* newBuffer(int bytes) {
|
||||
}
|
||||
|
||||
buf->size = bytes;
|
||||
// memset(buf->data, 0, bytes);
|
||||
memset(buf->data, 0, bytes);
|
||||
|
||||
return (void*)buf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user