mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 15:46:29 +00:00
completely avoid usage of strnlen()
This commit is contained in:
2
config.c
2
config.c
@@ -140,7 +140,7 @@ parse_config(const char *config_file, t_configuration_options * options)
|
||||
fclose(fp);
|
||||
|
||||
/* Check config settings */
|
||||
if (strnlen(options->cluster_name, MAXLEN) == 0)
|
||||
if (*options->cluster_name == '\0')
|
||||
{
|
||||
log_err(_("Cluster name is missing. Check the configuration file.\n"));
|
||||
exit(ERR_BAD_CONFIG);
|
||||
|
||||
Reference in New Issue
Block a user