Clean up psql variable code a little: eliminate unnecessary tests in

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 04c5b69603c4ec7f80022d0ae6d92ad8a6730141
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-06-21T16:05:11Z
Releases: 8.2.0
Clean up psql variable code a little: eliminate unnecessary tests in
GetVariable() and be consistent about treatment of the list header.
Motivated by noticing strspn() taking an unreasonable percentage of
runtime --- the call removed from GetVariable() was the only one that
could be in a high-usage path ...

Files

PathChange+/−
src/bin/psql/variables.c modified +20 −21