Skip to content
Snippets Groups Projects
Commit 52608f34 authored by Alvaro Herrera's avatar Alvaro Herrera
Browse files

Don't uselessly escape a string that doesn't need escaping

parent 46c19321
No related branches found
No related tags found
No related merge requests found
......@@ -1650,9 +1650,9 @@ GenerateRecoveryConf(PGconn *conn)
if (replication_slot)
{
escaped = escape_quotes(replication_slot);
appendPQExpBuffer(recoveryconfcontents, "primary_slot_name = '%s'\n", replication_slot);
free(escaped);
/* unescaped: ReplicationSlotValidateName allows [a-z0-9_] only */
appendPQExpBuffer(recoveryconfcontents, "primary_slot_name = '%s'\n",
replication_slot);
}
if (PQExpBufferBroken(recoveryconfcontents) ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment