projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d6419b
)
Initialize or set a couple of variables to suppress compiler warnings.
author
Thomas G. Lockhart
<
[email protected]
>
Sun, 21 Apr 2002 21:35:17 +0000
(21:35 +0000)
committer
Thomas G. Lockhart
<
[email protected]
>
Sun, 21 Apr 2002 21:35:17 +0000
(21:35 +0000)
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.
src/backend/commands/variable.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/variable.c
b/src/backend/commands/variable.c
index fbdbae6844b5b2ecc9803090c9db3ed799d3b9a3..c20a353e47be825972dec66fbdec2bd556a1145a 100644
(file)
--- a/
src/backend/commands/variable.c
+++ b/
src/backend/commands/variable.c
@@
-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);