diff options
Diffstat (limited to 'src/backend/nodes')
| -rw-r--r-- | src/backend/nodes/copyfuncs.c | 6 | ||||
| -rw-r--r-- | src/backend/nodes/equalfuncs.c | 4 | ||||
| -rw-r--r-- | src/backend/nodes/outfuncs.c | 4 | ||||
| -rw-r--r-- | src/backend/nodes/read.c | 6 | ||||
| -rw-r--r-- | src/backend/nodes/readfuncs.c | 10 |
5 files changed, 15 insertions, 15 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 4f49138edfd..e61a13eab04 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.2 1996/08/19 13:32:14 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.3 1996/11/08 05:56:35 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -39,7 +39,7 @@ List * listCopy(List *list) { List *newlist=NIL; - List *l, *nl; + List *l, *nl=NIL; foreach(l, list) { if (newlist==NIL) { @@ -1653,7 +1653,7 @@ copyObject(void *from) case T_List: { List *list=from, *l; - List *newlist = NIL, *nl; + List *newlist = NIL, *nl=NIL; foreach(l, list) { if (newlist==NIL) { newlist = nl = lcons(copyObject(lfirst(l)),NIL); diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index 54cafe47dc0..57226d5302f 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.2 1996/08/26 06:30:51 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.3 1996/11/08 05:56:39 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -570,7 +570,7 @@ _equalValue(Value *a, Value *b) bool equal(void *a, void *b) { - bool retval; + bool retval=false; if (a == b) return(true); diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 5281d526917..aa9f3fdbab3 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.1.1.1 1996/07/09 06:21:33 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.2 1996/11/08 05:56:43 momjian Exp $ * * NOTES * Every (plan) node in POSTGRES has an associated "out" routine which @@ -548,7 +548,7 @@ static void _outExpr(StringInfo str, Expr *node) { char buf[500]; - char *opstr; + char *opstr = NULL; sprintf(buf, "EXPR"); appendStringInfo(str,buf); diff --git a/src/backend/nodes/read.c b/src/backend/nodes/read.c index dbcc59a6f93..d2fa81cac35 100644 --- a/src/backend/nodes/read.c +++ b/src/backend/nodes/read.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.1.1.1 1996/07/09 06:21:33 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.2 1996/11/08 05:56:48 momjian Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -64,7 +64,7 @@ stringToNode(char *str) static NodeTag nodeTokenType(char *token, int length) { - NodeTag retval; + NodeTag retval = 0; /* * Check if the token is a number (decimal or integer, @@ -168,7 +168,7 @@ nodeRead(bool read_car_only) { char *token; NodeTag type; - Node *this_value, *return_value; + Node *this_value = NULL, *return_value = NULL; int tok_len; char tmp; bool make_dotted_pair_cell = false; diff --git a/src/backend/nodes/readfuncs.c b/src/backend/nodes/readfuncs.c index f0d9e3b1aff..692e14a84ab 100644 --- a/src/backend/nodes/readfuncs.c +++ b/src/backend/nodes/readfuncs.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.2 1996/07/31 02:18:48 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.3 1996/11/08 05:56:49 momjian Exp $ * * NOTES * Most of the read functions for plan nodes are tested. (In fact, they @@ -1047,7 +1047,7 @@ _readEState() token = lsptok(NULL, &length); /* get @ */ token = lsptok(NULL, &length); /* now read it */ - sscanf(token, "%x", &local_node->es_result_relation_info); + sscanf(token, "%x",(unsigned int *)&local_node->es_result_relation_info); return(local_node); } @@ -1117,13 +1117,13 @@ _readRel() token = lsptok(NULL, &length); /* get @ */ token = lsptok(NULL, &length); /* now read it */ - sscanf(token, "%x", &local_node->unorderedpath); + sscanf(token, "%x", (unsigned int *)&local_node->unorderedpath); token = lsptok(NULL, &length); /* get :cheapestpath */ token = lsptok(NULL, &length); /* get @ */ token = lsptok(NULL, &length); /* now read it */ - sscanf(token, "%x", &local_node->cheapestpath); + sscanf(token, "%x", (unsigned int *)&local_node->cheapestpath); token = lsptok(NULL, &length); /* get :clauseinfo */ @@ -1792,7 +1792,7 @@ parsePlanString() { char *token; int length; - void *return_value; + void *return_value = NULL; token = lsptok(NULL, &length); |
