Skip to content

Commit 504e233

Browse files
committed
objstr: Init hash in mp_obj_str_builder_start() to 0.
1 parent 4602b9a commit 504e233

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

py/objstr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,7 @@ mp_obj_t mp_obj_str_builder_start(const mp_obj_type_t *type, uint len, byte **da
14151415
mp_obj_str_t *o = m_new_obj(mp_obj_str_t);
14161416
o->base.type = type;
14171417
o->len = len;
1418+
o->hash = 0;
14181419
byte *p = m_new(byte, len + 1);
14191420
o->data = p;
14201421
*data = p;

0 commit comments

Comments
 (0)