aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/variables.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-11-07 23:08:36 +0000
committerBruce Momjian <bruce@momjian.us>1999-11-07 23:08:36 +0000
commit86ef36c9078311d5ccba53c17702af0450b11e25 (patch)
treea37836f78c4328e4b3a3ad6308a3779725546525 /src/bin/psql/variables.c
parentdf723a8a8aa3326d2ade8ad846a296e2e2500a64 (diff)
downloadpostgresql-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.c2
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);