diff --git a/py/objstr.c b/py/objstr.c
index a682144b8f9e6910cb4961dce47281910030f366..b0d5cba6f17162a8fd866fd6739e1997d9b0f958 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -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);
     o->base.type = type;
     o->len = len;
+    o->hash = 0;
     byte *p = m_new(byte, len + 1);
     o->data = p;
     *data = p;