Empty string should always be all 0s

This commit is contained in:
Richard Feldman 2020-11-21 23:00:42 -05:00
parent e0c97c9981
commit 4f765bae11

View file

@ -17,7 +17,7 @@ const RocStr = struct {
pub fn empty() RocStr { pub fn empty() RocStr {
return RocStr { return RocStr {
.str_len = 0, .str_len = 0,
.str_bytes_ptrs = undefined .str_bytes_ptrs = 0
}; };
} }