commit | 374edc70ba7d1c81fcaa29457eac5dffd1caf48d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Apr 01 17:01:43 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Apr 01 17:04:17 2021 +0200 |
tree | 5f4b9751b6a802155f6c66395e73432877a12c2c | |
parent | 09f88364b7c654980581d547aca696d44896c404 [diff] |
CLEANUP: vars: always pre-initialize smp in vars_parse_cli_get_var() In issue #1200 Coverity believes we may use an uninitialized field smp.sess here while it's not possible because the returned variable necessarily matches SCOPE_PROC hence smp.sess is not used. But it cannot see this and it could be confusing if the code later evolved into something more complex. That's not a critical path so let's first reset the sample.