Commit 504e2338 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

objstr: Init hash in mp_obj_str_builder_start() to 0.

parent 4602b9a7
...@@ -1415,6 +1415,7 @@ mp_obj_t mp_obj_str_builder_start(const mp_obj_type_t *type, uint len, byte **da ...@@ -1415,6 +1415,7 @@ mp_obj_t mp_obj_str_builder_start(const mp_obj_type_t *type, uint len, byte **da
mp_obj_str_t *o = m_new_obj(mp_obj_str_t); mp_obj_str_t *o = m_new_obj(mp_obj_str_t);
o->base.type = type; o->base.type = type;
o->len = len; o->len = len;
o->hash = 0;
byte *p = m_new(byte, len + 1); byte *p = m_new(byte, len + 1);
o->data = p; o->data = p;
*data = p; *data = p;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment