commit 633798d63e20638812f501fe1671970b54031b08
parent 9f1b5968e9ccd2ad020bb158eb4495944c91d676
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Fri, 21 Apr 2017 12:09:12 +0200
Fix an uninitialized variable.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/parser/solparser_spectrum.c b/src/parser/solparser_spectrum.c
@@ -118,7 +118,7 @@ parse_spectrum
const yaml_node_t* spectrum,
struct solparser_spectrum_id* out_ispectrum)
{
- struct solparser_spectrum* spec;
+ struct solparser_spectrum* spec = NULL;
size_t ispec = SIZE_MAX;
intptr_t i, n;
res_T res = RES_OK;