]> git.eshelyaron.com Git - emacs.git/commitdiff
(allocate_string_data): Don't copy old string contents.
authorGerd Moellmann <gerd@gnu.org>
Wed, 19 Jul 2000 11:05:32 +0000 (11:05 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 19 Jul 2000 11:05:32 +0000 (11:05 +0000)
src/alloc.c

index 4dc0b8165fa362d727cbc395a2cc97071a6f0640..38ae9d349247ad259b8b9006ecdf29c5e44cf23a 100644 (file)
@@ -1091,10 +1091,9 @@ allocate_string_data (s, nchars, nbytes)
   
   /* 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;
     }