Whamcloud - gitweb
LU-17000 utils: Call yaml_parser_scan before using 'token' 30/55330/4
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Thu, 6 Jun 2024 04:38:30 +0000 (00:38 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Jun 2024 01:14:50 +0000 (01:14 +0000)
commitbb18675d0c3c159cb771bb8c54722835ca8faebe
tree399193e5a2259457b774e3a0d81896b26b5469b6
parente8794074245db800854b2ab6d30d8e15aa893e8c
LU-17000 utils: Call yaml_parser_scan before using 'token'

Function 'yaml_parser_scan' is used to initilize and get
the next token. Call yaml_parser_scan() before using token.

Test-Parameters: trivial testlist=sanity-lnet
CoverityID: 403112 ("Uninitialized scalar variable")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Ieeb3d50a32690dc892a831fb60a9e85e4ec05113
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55330
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lustre_cfg.c