changeset 4956:0f94e1e7d273

(make_pure_string): If we USE_TEXT_PROPERTIES, set the interval of the pure string to NULL_INTERVAL.
author Richard M. Stallman <rms@gnu.org>
date Wed, 10 Nov 1993 19:55:18 +0000
parents 2da352ce967d
children dccce35b1173
files src/alloc.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Wed Nov 10 19:53:29 1993 +0000
+++ b/src/alloc.c	Wed Nov 10 19:55:18 1993 +0000
@@ -1011,6 +1011,12 @@
   XSTRING (new)->size = length;
   bcopy (data, XSTRING (new)->data, length);
   XSTRING (new)->data[length] = 0;
+
+  /* We must give strings in pure storage some kind of interval.  So we
+     give them a null one.  */
+#if defined (USE_TEXT_PROPERTIES)
+  XSTRING (new)->intervals = NULL_INTERVAL;
+#endif
   pureptr += (size + sizeof (int) - 1)
 	     / sizeof (int) * sizeof (int);
   return new;