From: Dmitry Antipov Date: Wed, 27 Jun 2012 14:35:51 +0000 (+0400) Subject: * alloc.c (allocate_string): Omit intervals initialization. X-Git-Tag: emacs-24.2.90~1199^2~319 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=246155ebec6d2d2c0243f12b2a23b459fc6c8a99;p=emacs.git * alloc.c (allocate_string): Omit intervals initialization. * alloc.c (make_uninit_multibyte_string): Initialize intervals as in make_pure_string and make_pure_c_string. --- diff --git a/src/ChangeLog b/src/ChangeLog index 169f0e4a673..75333b7160f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-06-27 Dmitry Antipov + + * alloc.c (allocate_string): Omit intervals initialization. + * alloc.c (make_uninit_multibyte_string): Initialize intervals + as in make_pure_string and make_pure_c_string. + 2012-06-27 Dmitry Antipov * alloc.c (allocate_string): Fix last change. diff --git a/src/alloc.c b/src/alloc.c index 8111487ace2..a16e3a6d83f 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -1959,10 +1959,6 @@ allocate_string (void) MALLOC_UNBLOCK_INPUT; - /* SIZE and SIZE_BYTE fields will be initialized - by calling allocate_string_data. */ - s->intervals = NULL_INTERVAL; - --total_free_strings; ++total_strings; ++strings_consed; @@ -2529,6 +2525,7 @@ make_uninit_multibyte_string (EMACS_INT nchars, EMACS_INT nbytes) return empty_multibyte_string; s = allocate_string (); + s->intervals = NULL_INTERVAL; allocate_string_data (s, nchars, nbytes); XSETSTRING (string, s); string_chars_consed += nbytes;