1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-14 08:21:07 +03:00

Avoid casting away a const

This commit is contained in:
Peter Eisentraut
2019-03-16 10:13:03 +01:00
parent 8e93a516e6
commit 893d6f8a1f
3 changed files with 3 additions and 3 deletions

View File

@ -11434,7 +11434,7 @@ assign_recovery_target_name(const char *newval, void *extra)
if (newval && strcmp(newval, "") != 0)
{
recoveryTarget = RECOVERY_TARGET_NAME;
recoveryTargetName = (char *) newval;
recoveryTargetName = newval;
}
else
recoveryTarget = RECOVERY_TARGET_UNSET;