summaryrefslogtreecommitdiffstatshomepage
path: root/py/objstr.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-19 02:18:19 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-19 02:18:19 +0100
commit27dd471098e5d27949826295e821df972d9af083 (patch)
tree05566c9cb594250aafd845512305ba0bcb9cce96 /py/objstr.c
parent3d19137442447f2e02db55bcd78b4c83cdc259f7 (diff)
parent206dd2a905fc4bca89c0b1a8beb2c71516f2053f (diff)
downloadmicropython-27dd471098e5d27949826295e821df972d9af083.tar.gz
micropython-27dd471098e5d27949826295e821df972d9af083.zip
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objstr.c b/py/objstr.c
index a682144b8f..b0d5cba6f1 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;