summaryrefslogtreecommitdiff
path: root/src/bin/psql/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/common.c')
-rw-r--r--src/bin/psql/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c
index c804148cd57..df8c80a1b26 100644
--- a/src/bin/psql/common.c
+++ b/src/bin/psql/common.c
@@ -1617,11 +1617,11 @@ session_username(void)
* substitute '~' with HOME or '~username' with username's home dir
*
*/
-char *
+void
expand_tilde(char **filename)
{
if (!filename || !(*filename))
- return NULL;
+ return;
/*
* WIN32 doesn't use tilde expansion for file names. Also, it uses tilde
@@ -1669,5 +1669,5 @@ expand_tilde(char **filename)
}
#endif
- return *filename;
+ return;
}