From e3a632e29dab4a75521b93a4aee0e9cd8f2c1901 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 28 Mar 2019 09:09:25 +0900 Subject: [PATCH] Use correct argument for sizeof() --- repmgr-action-cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr-action-cluster.c b/repmgr-action-cluster.c index 28265737..effd305c 100644 --- a/repmgr-action-cluster.c +++ b/repmgr-action-cluster.c @@ -1302,7 +1302,7 @@ build_cluster_crosscheck(t_node_status_cube ***dest_cube, int *name_length, Item /* we don't need the name here */ cube[h]->matrix_list_rec[i]->node_name[0] = '\0'; - cube[h]->matrix_list_rec[i]->node_status_list = (t_node_status_rec **) pg_malloc0(sizeof(t_node_status_rec) * nodes.node_count); + cube[h]->matrix_list_rec[i]->node_status_list = (t_node_status_rec **) pg_malloc0(sizeof(t_node_status_rec *) * nodes.node_count); j = 0;