Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenson Muite <bkmgit@users.noreply.github.com>2020-11-29 20:19:32 +0300
committerGitHub <noreply@github.com>2020-11-29 20:19:32 +0300
commit71645e4c8c478be085b65434b206f6749904933e (patch)
tree14d6847b736a2a6a5c57f71fb8cb32b4c4f98b03 /plugins
parente324c8b9f3a6718a064b77c211e95488fa0dcb63 (diff)
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ut99/ut99.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ut99/ut99.cpp b/plugins/ut99/ut99.cpp
index 004becbf0..108e0bc65 100644
--- a/plugins/ut99/ut99.cpp
+++ b/plugins/ut99/ut99.cpp
@@ -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;