projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb377ec
)
Initialize variable to silence the warning:
author
Diego Biurrun
<diego@biurrun.de>
Fri, 31 Oct 2008 06:52:37 +0000
(06:52 +0000)
committer
Diego Biurrun
<diego@biurrun.de>
Fri, 31 Oct 2008 06:52:37 +0000
(06:52 +0000)
libavutil/pca.c:72: warning: âkâ may be used uninitialized in this function
Originally committed as revision 15760 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/pca.c
patch
|
blob
|
history
diff --git
a/libavutil/pca.c
b/libavutil/pca.c
index
f2542f2
..
d21814c
100644
(file)
--- a/
libavutil/pca.c
+++ b/
libavutil/pca.c
@@
-67,7
+67,8
@@
void ff_pca_add(PCA *pca, double *v){
}
int ff_pca(PCA *pca, double *eigenvector, double *eigenvalue){
- int i, j, k, pass;
+ int i, j, pass;
+ int k=0;
const int n= pca->n;
double z[n];