diff options
| author | Antonin Descampe <antonin@gmail.com> | 2016-04-12 10:47:28 +0200 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2016-04-12 10:47:28 +0200 |
| commit | 40b5a53d2f364fe59b8ed86f4821c867d345a95e (patch) | |
| tree | d44e288f66d2c0f1cab869f2b14fcab8f37de33b /src/lib | |
| parent | 5c5ae1d51a3b5a1c4e68ae0323f7a14d7628f465 (diff) | |
| parent | e7797b97a1922e0d38d705916117c29af96471a0 (diff) | |
Merge pull request #735 from senbox-org/cppcheck_fix_openjp2
Fix uninitialized variable reported by cppcheck
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/openjp2/t1_generate_luts.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/openjp2/t1_generate_luts.c b/src/lib/openjp2/t1_generate_luts.c index 1997d399..cba7245d 100644 --- a/src/lib/openjp2/t1_generate_luts.c +++ b/src/lib/openjp2/t1_generate_luts.c @@ -40,10 +40,12 @@ static int t1_init_ctxno_zc(int f, int orient) { int h, v, d, n, t, hv; - n = 0; h = ((f & T1_SIG_W) != 0) + ((f & T1_SIG_E) != 0); v = ((f & T1_SIG_N) != 0) + ((f & T1_SIG_S) != 0); d = ((f & T1_SIG_NW) != 0) + ((f & T1_SIG_NE) != 0) + ((f & T1_SIG_SE) != 0) + ((f & T1_SIG_SW) != 0); + n = 0; + t = 0; + hv = 0; switch (orient) { case 2: |
