diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index a79fa04a..30ce6bf9 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -4970,7 +4970,7 @@ write_primary_conninfo(char *line, t_conninfo_param_list *param_list) } /* passfile provided as configuration option */ - if (config_file_options.passfile[0] != '\n') + if (config_file_options.passfile[0] != '\0') { /* check if the libpq we're using supports "passfile=" */ if (has_passfile() == true)