]> git.puffer.fish Git - mirror/frr.git/commit
vtysh: Remove double retrieve of env VTYSH_HISTFILE 12557/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 21 Dec 2022 13:04:34 +0000 (08:04 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 21 Dec 2022 13:04:34 +0000 (08:04 -0500)
commit99a9f25ce8c1e070f7f37c4cbd439c11bb7432eb
treeea8037ea9e68056f0854d59058203e050b649178
parent11a98193dc75e6afe36e220bdf61c7139b14a944
vtysh: Remove double retrieve of env VTYSH_HISTFILE

The code is double checking the VTYSH_HISTFILE env variable,
additionally clang-15 when running SA over it doesn't fully
understand the code pattern.  Reduce the double check to
one check to reduce program run-time (ha!) and make SA happy.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
vtysh/vtysh_main.c