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) ...@@ -1650,9 +1650,9 @@ GenerateRecoveryConf(PGconn *conn)
if (replication_slot) if (replication_slot)
{ {
escaped = escape_quotes(replication_slot); /* unescaped: ReplicationSlotValidateName allows [a-z0-9_] only */
appendPQExpBuffer(recoveryconfcontents, "primary_slot_name = '%s'\n", replication_slot); appendPQExpBuffer(recoveryconfcontents, "primary_slot_name = '%s'\n",
free(escaped); replication_slot);
} }
if (PQExpBufferBroken(recoveryconfcontents) || if (PQExpBufferBroken(recoveryconfcontents) ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment