repmgr: don't add empty "passfile" parameter in recovery.conf

This commit is contained in:
Ian Barwick
2017-11-20 10:27:45 +09:00
parent 5b4c92392c
commit c9f12cfbe0

View File

@@ -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)