be quiet, griping compiler!

This commit is contained in:
Ian Barwick
2020-05-07 14:37:57 +09:00
parent 4a1855fabe
commit 94fbf76b2e

View File

@@ -2411,8 +2411,8 @@ tablespace_list_copy(t_configuration_options *original, t_configuration_options
{ {
TablespaceListCell *copy_cell = (TablespaceListCell *) pg_malloc0(sizeof(TablespaceListCell)); TablespaceListCell *copy_cell = (TablespaceListCell *) pg_malloc0(sizeof(TablespaceListCell));
strncpy(copy_cell->old_dir, orig_cell->old_dir, sizeof(orig_cell->old_dir)); strncpy(copy_cell->old_dir, orig_cell->old_dir, sizeof(copy_cell->old_dir));
strncpy(copy_cell->new_dir, orig_cell->new_dir, sizeof(orig_cell->new_dir)); strncpy(copy_cell->new_dir, orig_cell->new_dir, sizeof(copy_cell->new_dir));
if (copy->tablespace_mapping.tail) if (copy->tablespace_mapping.tail)
copy->tablespace_mapping.tail->next = copy_cell; copy->tablespace_mapping.tail->next = copy_cell;