summaryrefslogtreecommitdiff
path: root/xmake/core/base/bytes.lua
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-18 21:17:56 +0800
committerOpportunity <[email protected]>2020-01-19 13:01:09 +0800
commitc4c151b8b05ff57a71199fd7cdea6b8b3b5bbd15 (patch)
treec7d7d4a3d8a57324865f76babc4e78e8c70b8d9c /xmake/core/base/bytes.lua
parentfaca684d1ec62de7bc3e56224c986ab24533f4fa (diff)
fix
Diffstat (limited to 'xmake/core/base/bytes.lua')
-rw-r--r--xmake/core/base/bytes.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/xmake/core/base/bytes.lua b/xmake/core/base/bytes.lua
index 3776695a1..54343a962 100644
--- a/xmake/core/base/bytes.lua
+++ b/xmake/core/base/bytes.lua
@@ -65,7 +65,6 @@ function _instance.new(...)
else
-- bytes(size): allocates a buffer of given size
ptr = ffi.C.malloc(size)
- ffi.fill(ptr, size, 0)
instance._CDATA = ffi.gc(ffi.cast("unsigned char*", ptr), ffi.C.free)
instance._MANAGED = true
end