diff options
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 | } |