mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Silence potential compiler complaint
*We* know the target buffer is sufficiently sized to accept the source string, but the compiler doesn't.
This commit is contained in:
@@ -5854,8 +5854,9 @@ is_downstream_node_attached(PGconn *conn, char *node_name, char **node_state)
|
||||
|
||||
if (node_state != NULL)
|
||||
{
|
||||
*node_state = palloc0(strlen(state) + 1);
|
||||
strncpy(*node_state, state, strlen(state));
|
||||
int state_len = strlen(state);
|
||||
*node_state = palloc0(state_len + 1);
|
||||
strncpy(*node_state, state, state_len);
|
||||
}
|
||||
|
||||
if (strcmp(state, "streaming") != 0)
|
||||
|
||||
Reference in New Issue
Block a user