]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: don't needlessly call c_none() in sample_fetch_as_type()
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Apr 2022 08:02:11 +0000 (10:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Apr 2022 14:09:26 +0000 (16:09 +0200)
commit3705deea99ac557c74125b7302dd15082585d76c
tree4dfa40d018d1ca384cb5ae2f748bcc7815a572cf
parent1a8636d0179904743a118d8938d2c459d9617111
MINOR: sample: don't needlessly call c_none() in sample_fetch_as_type()

Surprisingly, while about all calls to a sample cast function carefully
avoid calling c_none(), sample_fetch_as_type() makes no effort regarding
this, while by nature, the function is most often called with an expected
output type similar to the one of the expresison. Let's add it to shorten
the most common call path.
src/sample.c