1.1 --- a/templates/native/common.c Fri Dec 09 23:30:41 2016 +0100
1.2 +++ b/templates/native/common.c Fri Dec 09 23:51:47 2016 +0100
1.3 @@ -36,9 +36,10 @@
1.4
1.5 __attr __new_str(char *s)
1.6 {
1.7 - /* Create a new string and mutate the __data__ attribute. */
1.8 + /* Create a new string and mutate the __data__ and __key__ attributes. */
1.9 __attr attr = __new(&__InstanceTable___builtins___str_string, &__builtins___str_string, sizeof(__obj___builtins___str_string));
1.10 attr.value->attrs[__pos___data__].strvalue = s;
1.11 + attr.value->attrs[__pos___key__] = (__attr) {0, 0};
1.12 return attr;
1.13 }
1.14