summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2012-06-27 18:35:51 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2012-06-27 18:35:51 +0400
commit246155ebec6d2d2c0243f12b2a23b459fc6c8a99 (patch)
treea8ffbdd028063757039e7f61d2ee902703a38c39 /src/alloc.c
parent3fd56834d9d553991071f512460cb01b75d6069c (diff)
* 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.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c5
1 files changed, 1 insertions, 4 deletions
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;