mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
Ignore comments after values
This commit is contained in:
2
config.c
2
config.c
@@ -383,6 +383,8 @@ parse_line(char *buff, char *name, char *value)
|
|||||||
for (++i; i < MAXLEN; ++i)
|
for (++i; i < MAXLEN; ++i)
|
||||||
if (buff[i] == '\'')
|
if (buff[i] == '\'')
|
||||||
continue;
|
continue;
|
||||||
|
else if (buff[i] == '#')
|
||||||
|
break;
|
||||||
else if (buff[i] != '\n')
|
else if (buff[i] != '\n')
|
||||||
value[j++] = buff[i];
|
value[j++] = buff[i];
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user