Branch: Tag:

2014-08-27

2014-08-27 01:51:54 by Martin Nilsson <nilsson@opera.com>

Less crashy String.Builder.

3355:    {    struct Buffer_struct *str = THIS;    struct pike_string *s = finish_string_builder( &str->str ); -  str->str.malloced = 0; -  str->str.s = NULL; +  init_string_builder_alloc(&str->str, str->initial, 0);    if( Pike_fp->current_object->flags & OBJECT_CLEAR_ON_EXIT )    s->flags |= STRING_CLEAR_ON_EXIT;    push_string(s);