]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[SpanDSP] Fix use of uninitialized xyz variable in set_illuminant_from_code() 265/head
authorAndrey Volk <andywolk@gmail.com>
Sun, 26 Jan 2020 14:32:18 +0000 (18:32 +0400)
committerAndrey Volk <andywolk@gmail.com>
Sun, 26 Jan 2020 14:32:18 +0000 (18:32 +0400)
libs/spandsp/src/t42.c

index 748fc7180cae48b0090ead863cd7218d56391935..697f6231069840117548c3b75587a9af184e1f81 100644 (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)
     {