diff options
| author | Richard M. Stallman | 1993-11-10 19:55:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-10 19:55:18 +0000 |
| commit | 06c5fe00340d6a79484611f426c69e6005a4abb2 (patch) | |
| tree | db6849def885e1ba7da5cbc95b6d878690b6c5c2 /src | |
| parent | b01b093a01b49f9e529bbf0e76422b91cf9a4959 (diff) | |
| download | emacs-06c5fe00340d6a79484611f426c69e6005a4abb2.tar.gz emacs-06c5fe00340d6a79484611f426c69e6005a4abb2.zip | |
(make_pure_string): If we USE_TEXT_PROPERTIES, set the
interval of the pure string to NULL_INTERVAL.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 1e207b8f19b..f17db1ff07c 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -1011,6 +1011,12 @@ make_pure_string (data, length) | |||
| 1011 | XSTRING (new)->size = length; | 1011 | XSTRING (new)->size = length; |
| 1012 | bcopy (data, XSTRING (new)->data, length); | 1012 | bcopy (data, XSTRING (new)->data, length); |
| 1013 | XSTRING (new)->data[length] = 0; | 1013 | XSTRING (new)->data[length] = 0; |
| 1014 | |||
| 1015 | /* We must give strings in pure storage some kind of interval. So we | ||
| 1016 | give them a null one. */ | ||
| 1017 | #if defined (USE_TEXT_PROPERTIES) | ||
| 1018 | XSTRING (new)->intervals = NULL_INTERVAL; | ||
| 1019 | #endif | ||
| 1014 | pureptr += (size + sizeof (int) - 1) | 1020 | pureptr += (size + sizeof (int) - 1) |
| 1015 | / sizeof (int) * sizeof (int); | 1021 | / sizeof (int) * sizeof (int); |
| 1016 | return new; | 1022 | return new; |