Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
504e2338
Commit
504e2338
authored
Apr 19, 2014
by
Paul Sokolovsky
Browse files
objstr: Init hash in mp_obj_str_builder_start() to 0.
parent
4602b9a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objstr.c
View file @
504e2338
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment