changeset 30317:96e65dc07fd7

(allocate_string_data): Don't copy old string contents.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 19 Jul 2000 11:05:32 +0000
parents a0e2fa7d8bb7
children 415e3dd996d8
files src/alloc.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Wed Jul 19 11:04:18 2000 +0000
+++ b/src/alloc.c	Wed Jul 19 11:05:32 2000 +0000
@@ -1091,10 +1091,9 @@
   
   /* If S had already data assigned, mark that as free by setting its
      string back-pointer to null, and recording the size of the data
-     in it.. Copy old string contents to the new sdata.  */
+     in it.  */
   if (old_data)
     {
-      bcopy (old_data->u.data, s->data, old_nbytes);
       old_data->u.nbytes = old_nbytes;
       old_data->string = NULL;
     }