diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-11-07 23:08:36 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-11-07 23:08:36 +0000 |
commit | 86ef36c9078311d5ccba53c17702af0450b11e25 (patch) | |
tree | a37836f78c4328e4b3a3ad6308a3779725546525 /src/bin/psql/variables.c | |
parent | df723a8a8aa3326d2ade8ad846a296e2e2500a64 (diff) | |
download | postgresql-86ef36c9078311d5ccba53c17702af0450b11e25.tar.gz postgresql-86ef36c9078311d5ccba53c17702af0450b11e25.zip |
New NameStr macro to convert Name to Str. No need for var.data anymore.
Fewer calls to nameout.
Better use of RelationGetRelationName.
Diffstat (limited to 'src/bin/psql/variables.c')
-rw-r--r-- | src/bin/psql/variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/variables.c b/src/bin/psql/variables.c index 132ecc9322e..c84363ea7f3 100644 --- a/src/bin/psql/variables.c +++ b/src/bin/psql/variables.c @@ -79,7 +79,7 @@ SetVariable(VariableSpace space, const char *name, const char *value) if (strspn(name, VALID_VARIABLE_CHARS) != strlen(name)) return false; - for (current = space; current; previous = current, current = current->next) + for (current = space, previous = NULL; current; previous = current, current = current->next) { #ifdef USE_ASSERT_CHECKING assert(current->name); |