diff options
author | Michael Meskes <meskes@postgresql.org> | 2003-12-17 15:31:51 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2003-12-17 15:31:51 +0000 |
commit | 96cee3f12a5b9ce789cec19d0fa0fce1bd77dde1 (patch) | |
tree | 6b45f7313b305f9c3c442c1b3cf7f6cfa6673d18 /src/interfaces/ecpg/preproc/variable.c | |
parent | 9c09764783a24df5723df7987fba97a1c1cefdca (diff) | |
download | postgresql-96cee3f12a5b9ce789cec19d0fa0fce1bd77dde1.tar.gz postgresql-96cee3f12a5b9ce789cec19d0fa0fce1bd77dde1.zip |
Applied all bug fixes from head also to 7.4. Just bugfixes, no new features.
Diffstat (limited to 'src/interfaces/ecpg/preproc/variable.c')
-rw-r--r-- | src/interfaces/ecpg/preproc/variable.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/preproc/variable.c b/src/interfaces/ecpg/preproc/variable.c index 7a3875832ab..be1cb5f0b74 100644 --- a/src/interfaces/ecpg/preproc/variable.c +++ b/src/interfaces/ecpg/preproc/variable.c @@ -299,7 +299,7 @@ remove_variables(int brace_level) prevvar->next = varptr->next; } } - for (varptr = ptr->argsresult; varptr != NULL; varptr = varptr->next) + for (varptr = prevvar = ptr->argsresult; varptr != NULL; varptr = varptr->next) { if (p == varptr->variable) { @@ -349,7 +349,7 @@ reset_variables(void) * Note: The list is dumped from the end, * so we have to add new entries at the beginning */ void -add_variable(struct arguments ** list, struct variable * var, struct variable * ind) +add_variable_to_head(struct arguments ** list, struct variable * var, struct variable * ind) { struct arguments *p = (struct arguments *) mm_alloc(sizeof(struct arguments)); @@ -361,7 +361,7 @@ add_variable(struct arguments ** list, struct variable * var, struct variable * /* Append a new variable to our request list. */ void -append_variable(struct arguments ** list, struct variable * var, struct variable * ind) +add_variable_to_tail(struct arguments ** list, struct variable * var, struct variable * ind) { struct arguments *p, *new = (struct arguments *) mm_alloc(sizeof(struct arguments)); |