aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/variable.c
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>2002-04-21 21:35:17 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>2002-04-21 21:35:17 +0000
commitb875b599f3c46cc3c13c7755674732dcc6ff5740 (patch)
treea5b1eb5fabc275322be0e11eb7fd1f76f6947410 /src/backend/commands/variable.c
parent67ef699ff46a9a4907e25823b84f28fd0b26399f (diff)
downloadpostgresql-b875b599f3c46cc3c13c7755674732dcc6ff5740.tar.gz
postgresql-b875b599f3c46cc3c13c7755674732dcc6ff5740.zip
Initialize or set a couple of variables to suppress compiler warnings.
These were for cases protected by elog(ERROR) exits, but may as well keep the compiler happy. Not sure why they don't show up on my gcc-2.96.x version of the compiler.
Diffstat (limited to 'src/backend/commands/variable.c')
-rw-r--r--src/backend/commands/variable.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/commands/variable.c b/src/backend/commands/variable.c
index cb573d075c1..504f9c56b6f 100644
--- a/src/backend/commands/variable.c
+++ b/src/backend/commands/variable.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.62 2002/04/21 19:12:46 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.63 2002/04/21 21:35:17 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -259,7 +259,7 @@ parse_datestyle_internal(char *value)
static bool
parse_datestyle(List *args)
{
- int rstat;
+ int rstat = FALSE;
List *arg;
char *value;
@@ -295,6 +295,7 @@ parse_datestyle(List *args)
else
{
elog(ERROR, "SET DATESTYLE argument is not valid");
+ value = NULL;
}
rstat = parse_datestyle_internal(value);