Skip to content
Snippets Groups Projects
Commit 26adbc7b authored by Tom Lane's avatar Tom Lane
Browse files

Clean up compiler warnings.

parent 3908473c
Branches
Tags
No related merge requests found
......@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.64 2000/11/08 16:59:49 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.65 2000/11/08 23:24:24 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -387,7 +387,7 @@ get_user_info(Oid use_sysid, bool *use_super, bool *use_createdb)
static char *
resolve_alt_dbpath(const char * dbpath, Oid dboid)
{
char * prefix;
const char * prefix;
char * ret;
size_t len;
......@@ -396,11 +396,10 @@ resolve_alt_dbpath(const char * dbpath, Oid dboid)
if (strchr(dbpath, '/'))
{
#ifdef ALLOW_ABSOLUTE_DBPATHS
prefix = dbpath;
#else
#ifndef ALLOW_ABSOLUTE_DBPATHS
elog(ERROR, "Absolute paths are not allowed as database locations");
#endif
prefix = dbpath;
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment