cfgfile: fix uninitialized variable on load error
authorMichal Kobylinski <michalx.kobylinski@intel.com>
Wed, 13 Apr 2016 12:15:02 +0000 (14:15 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 2 May 2016 13:15:46 +0000 (15:15 +0200)
commit907dd23866be4dc2e7740cce9481a321770b1ee6
tree453a3888dd32a1ec112e8b7f32557f5465572021
parent182d91f35b9877293ec7e2c40859616e7d085fdb
cfgfile: fix uninitialized variable on load error

CID 13323:
Uninitialized scalar variable. Using uninitialized value
cfg->num_sections when calling rte_cfgfile_close.

Fixes: eaafbad419bf ("cfgfile: library to interpret config files")

Signed-off-by: Michal Kobylinski <michalx.kobylinski@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_cfgfile/rte_cfgfile.c