xfree86: modes: fix uninitialized variables
| ../hw/xfree86/modes/xf86RandR12.c: In function ‘xf86ComputeCrtcPan’: | ../hw/xfree86/modes/xf86RandR12.c:310:54: warning: use of uninitialized value ‘r[1]’ [CWE-457] [-Wanalyzer-use-of-uninitialized-value] | 310 | q[i] = m->m[1][i] * r[0] - m->m[0][i] * r[1]; | | ~^~~ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
7ae09df3ae
commit
30c60ed578
|
@ -295,10 +295,10 @@ xf86ComputeCrtcPan(Bool transform_in_use,
|
|||
* dy = (F T0 - Q0) / U0
|
||||
* dy = (F P0 - V0) / W0
|
||||
*/
|
||||
double r[3];
|
||||
double q[2], u[2], t[2], v[2], w[2], p[2];
|
||||
double r[3] = { 0 };
|
||||
double q[2], u[2], t[2], v[2], w[2] = { 0 }, p[2];
|
||||
double f;
|
||||
struct pixman_f_vector d;
|
||||
struct pixman_f_vector d = { 0 };
|
||||
int i;
|
||||
|
||||
/* Get the un-normalized crtc coordinates again */
|
||||
|
|
Loading…
Reference in New Issue