]> git.eshelyaron.com Git - emacs.git/commitdiff
(make_pure_string): If we USE_TEXT_PROPERTIES, set the
authorRichard M. Stallman <rms@gnu.org>
Wed, 10 Nov 1993 19:55:18 +0000 (19:55 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 10 Nov 1993 19:55:18 +0000 (19:55 +0000)
interval of the pure string to NULL_INTERVAL.

src/alloc.c

index 1e207b8f19bb69f72a1005b454c33861e921451e..f17db1ff07ca1fff4946ec4f6ee2540c26fe9e3a 100644 (file)
@@ -1011,6 +1011,12 @@ make_pure_string (data, length)
   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;