From 86ef36c9078311d5ccba53c17702af0450b11e25 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 7 Nov 1999 23:08:36 +0000 Subject: New NameStr macro to convert Name to Str. No need for var.data anymore. Fewer calls to nameout. Better use of RelationGetRelationName. --- src/bin/psql/variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin/psql/variables.c') 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); -- cgit v1.2.3