diff options
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); |