Merge pull request #4606: FIX(plugin): initialize array to prevent warning

When building on CentOS 8 with default flags which includes Wall flag,
build stops because array n[3] is not initialized. Initialize it to have all
values to be zero.
This commit is contained in:
Robert Adam 2020-11-30 19:41:28 +01:00 committed by GitHub
commit bc76ecbd1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ static void norm(float *a) {
}
static bool correctFront(float *front, float *top) {
float n[3];
float n[3] = {0};
if (top[1] < 0) {
front[0] *= -1;