OSDN Git Service
(root)
/
android-x86
/
packages-apps-Gallery2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Gallery2: Fix use of uninitialized stack variables
[android-x86/packages-apps-Gallery2.git]
/
jni
/
filters
/
wbalance.c
diff --git
a/jni/filters/wbalance.c
b/jni/filters/wbalance.c
index
2b92b99
..
7592a42
100644
(file)
--- a/
jni/filters/wbalance.c
+++ b/
jni/filters/wbalance.c
@@
-99,10
+99,10
@@
void estmateWhite(unsigned char *src, int len, int *wr, int *wb, int *wg){
}
void estmateWhiteBox(unsigned char *src, int iw, int ih, int x,int y, int *wr, int *wb, int *wg){
- int r;
- int g;
- int b;
- int sum;
+ int r
= 0
;
+ int g
= 0
;
+ int b
= 0
;
+ int sum
= 0
;
int xp,yp;
int bounds = 5;
if (x<0) x = bounds;