Merge pull request #265 from signalwire/set_illuminant_from_code

[SpanDSP] Fix use of uninitialized xyz variable in set_illuminant_from_code()
This commit is contained in:
Andrey Volk 2020-01-28 23:10:07 +04:00 committed by GitHub
commit dc2b43fb74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ int set_illuminant_from_code(logging_state_t *logging, lab_params_t *lab, const
{
int i;
int colour_temp;
float xyz[3];
float xyz[3] = { 0 };
if (memcmp(code, "CT", 2) == 0)
{