diff options
| author | Gerd Moellmann | 2000-07-19 11:05:32 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-07-19 11:05:32 +0000 |
| commit | 00c9c33c29b7b97bfa17442b0c4b14faa1507823 (patch) | |
| tree | 8d7f6441811c570146b2e018e2a63412fdc4b2b3 /src/alloc.c | |
| parent | a893064df5e3a695fc3c49a52569bd3366c9607f (diff) | |
| download | emacs-00c9c33c29b7b97bfa17442b0c4b14faa1507823.tar.gz emacs-00c9c33c29b7b97bfa17442b0c4b14faa1507823.zip | |
(allocate_string_data): Don't copy old string contents.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index 4dc0b8165fa..38ae9d34924 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -1091,10 +1091,9 @@ allocate_string_data (s, nchars, nbytes) | |||
| 1091 | 1091 | ||
| 1092 | /* If S had already data assigned, mark that as free by setting its | 1092 | /* If S had already data assigned, mark that as free by setting its |
| 1093 | string back-pointer to null, and recording the size of the data | 1093 | string back-pointer to null, and recording the size of the data |
| 1094 | in it.. Copy old string contents to the new sdata. */ | 1094 | in it. */ |
| 1095 | if (old_data) | 1095 | if (old_data) |
| 1096 | { | 1096 | { |
| 1097 | bcopy (old_data->u.data, s->data, old_nbytes); | ||
| 1098 | old_data->u.nbytes = old_nbytes; | 1097 | old_data->u.nbytes = old_nbytes; |
| 1099 | old_data->string = NULL; | 1098 | old_data->string = NULL; |
| 1100 | } | 1099 | } |