mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Update code comment
This commit is contained in:
@@ -4250,6 +4250,7 @@ do_standby_switchover(void)
|
|||||||
*/
|
*/
|
||||||
if (runtime_options.dry_run == true)
|
if (runtime_options.dry_run == true)
|
||||||
{
|
{
|
||||||
|
/* we use a buffer here as it will be modified by string_remove_trailing_newlines() */
|
||||||
char shutdown_command[MAXLEN] = "";
|
char shutdown_command[MAXLEN] = "";
|
||||||
|
|
||||||
strncpy(shutdown_command, command_output.data, MAXLEN);
|
strncpy(shutdown_command, command_output.data, MAXLEN);
|
||||||
|
|||||||
Reference in New Issue
Block a user