aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c6
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;