1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 09:51:22 -08:00

* 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.
This commit is contained in:
Dmitry Antipov 2012-06-27 18:35:51 +04:00
parent 3fd56834d9
commit 246155ebec
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2012-06-27 Dmitry Antipov <dmantipov@yandex.ru>
* 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 <dmantipov@yandex.ru>
* alloc.c (allocate_string): Fix last change.

View file

@ -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;