From 504e23388ce68fcb1ac80a7c411979718686af7c Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Sat, 19 Apr 2014 03:09:17 +0300
Subject: [PATCH] objstr: Init hash in mp_obj_str_builder_start() to 0.

---
 py/objstr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/py/objstr.c b/py/objstr.c
index a682144b8..b0d5cba6f 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;
-- 
GitLab