aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/input.c')
-rw-r--r--src/bin/psql/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/input.c b/src/bin/psql/input.c
index f2b6e4ed7fa..29f2fa12d30 100644
--- a/src/bin/psql/input.c
+++ b/src/bin/psql/input.c
@@ -298,7 +298,7 @@ initializeInput(int flags)
if (histfile == NULL)
{
if (get_home_path(home))
- pg_asprintf(&psql_history, "%s/%s", home, PSQLHISTORY);
+ psql_history = psprintf("%s/%s", home, PSQLHISTORY);
}
else
{