diff options
Diffstat (limited to 'src/bin/psql/prompt.c')
-rw-r--r-- | src/bin/psql/prompt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/prompt.c b/src/bin/psql/prompt.c index 60e82cc2c3c..c26168b099e 100644 --- a/src/bin/psql/prompt.c +++ b/src/bin/psql/prompt.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/prompt.c,v 1.32 2004/01/20 19:49:34 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/psql/prompt.c,v 1.33 2004/01/24 19:38:49 neilc Exp $ */ #include "postgres_fe.h" #include "prompt.h" @@ -248,7 +248,7 @@ get_prompt(promptStatus_t status) case '`': { FILE *fd = NULL; - char *file = strdup(p + 1); + char *file = xstrdup(p + 1); int cmdend; cmdend = strcspn(file, "`"); @@ -274,7 +274,7 @@ get_prompt(promptStatus_t status) const char *val; int nameend; - name = strdup(p + 1); + name = xstrdup(p + 1); nameend = strcspn(name, ":"); name[nameend] = '\0'; val = GetVariable(pset.vars, name); |