Skip to content

Commit b875b59

Browse files
author
Thomas G. Lockhart
committed
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.
1 parent 67ef699 commit b875b59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/commands/variable.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.62 2002/04/21 19:12:46 thomas Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.63 2002/04/21 21:35:17 thomas Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -259,7 +259,7 @@ parse_datestyle_internal(char *value)
259259
static bool
260260
parse_datestyle(List *args)
261261
{
262-
int rstat;
262+
int rstat = FALSE;
263263
List *arg;
264264
char *value;
265265

@@ -295,6 +295,7 @@ parse_datestyle(List *args)
295295
else
296296
{
297297
elog(ERROR, "SET DATESTYLE argument is not valid");
298+
value = NULL;
298299
}
299300

300301
rstat = parse_datestyle_internal(value);

0 commit comments

Comments
 (0)