mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
be quiet, griping compiler!
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user