Whamcloud - gitweb
LU-17000 utils: Initialize var 'gw' and 'net' before using 16/55316/2
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Wed, 5 Jun 2024 06:46:13 +0000 (02:46 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Jun 2024 06:15:26 +0000 (06:15 +0000)
commit3b888d00da1a92b7c872c5de1fab8e8a3d6363b8
tree53ba40e1de68399bbe7b036d4ae46943bf14392b
parentf28a7a33a8254fc25c8cb348f87a0c133286393f
LU-17000 utils: Initialize var 'gw' and 'net' before using

Although this is called at "sequence end" and most
likely 'gw' and 'net' will be populated by then. It
is still good to be defensive and make them initialize

Test-Parameters: trivial testlist=sanity-lnet
CoverityID: 410246 ("Uninitialized scalar variable")
CoverityID: 410240 ("Uninitialized scalar variable")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I2f47df431eea0e0344043ac22806865e87435c6e
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55316
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/portals.c