Commit 50066278 authored by Steven Liu's avatar Steven Liu Committed by Michael Niedermayer

tests/audiomatch: Fix compile warning

Making sure bestpos is initialized to zero to prevent gcc from kvetching.
It's harmless (although it's not obvious that it's harmless)
from code inspection:
tests/audiomatch.c: In function ‘main’:
tests/audiomatch.c:40: warning: ‘bestpos’ may be used uninitialized in this function

Thanks to Moritz Barsnick for first bringing this to the attention.
Signed-off-by: 's avatarLiuQi <liuqi@gosun.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent e1ced854
...@@ -37,7 +37,7 @@ int main(int argc, char **argv){ ...@@ -37,7 +37,7 @@ int main(int argc, char **argv){
FILE *f[2]; FILE *f[2];
int i, pos; int i, pos;
int siglen, datlen; int siglen, datlen;
int bestpos; int bestpos = 0;
double bestc=0; double bestc=0;
double sigamp= 0; double sigamp= 0;
int16_t *signal, *data; int16_t *signal, *data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment