diff options
author | Bruce Momjian <bruce@momjian.us> | 2013-04-04 12:56:21 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2013-04-04 12:56:25 -0400 |
commit | 39d4c764da3d4dd74238d82b0e5ccd1030ebf9f7 (patch) | |
tree | 51c7a50f41c79c905fef0c001632765e4e160b0b /src/bin/psql/common.h | |
parent | c99e0d382f811cf0fbad50e912183ed4eb7b8de8 (diff) |
psql: fix startup crash caused by PSQLRC containing a tilde
'strdup' the PSQLRC environment variable value before calling a routine
that might free() it.
Backpatch to 9.2, where the bug first appeared.
Diffstat (limited to 'src/bin/psql/common.h')
-rw-r--r-- | src/bin/psql/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/common.h b/src/bin/psql/common.h index 8037cbc0a0d..cfe0dadfd66 100644 --- a/src/bin/psql/common.h +++ b/src/bin/psql/common.h @@ -61,6 +61,6 @@ extern bool is_superuser(void); extern bool standard_strings(void); extern const char *session_username(void); -extern char *expand_tilde(char **filename); +extern void expand_tilde(char **filename); #endif /* COMMON_H */ |