aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-08-22 20:37:23 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-08-22 20:37:23 +0200
commit2316e62c612f42ea80f309b1a1c03103fc002707 (patch)
tree0f32271fd894f3d943919e3b39a1c89c4f7cc467
parent328f8d611797f34d64af91987e097d8311111c15 (diff)
downloadetisnoop-2316e62c612f42ea80f309b1a1c03103fc002707.tar.gz
etisnoop-2316e62c612f42ea80f309b1a1c03103fc002707.tar.bz2
etisnoop-2316e62c612f42ea80f309b1a1c03103fc002707.zip
Fix warning about uninitialised ecc in FIG0/2
-rw-r--r--fig0_2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/fig0_2.cpp b/fig0_2.cpp
index 95e6268..27f01ac 100644
--- a/fig0_2.cpp
+++ b/fig0_2.cpp
@@ -62,6 +62,7 @@ bool fig0_2(fig0_common_t& fig0, int indent)
while (k < fig0.figlen) {
if (fig0.pd() == 0) {
sid = f[k] * 256 + f[k+1];
+ ecc = 0;
cid = (f[k] & 0xF0) >> 4;
sref = (f[k] & 0x0F) * 256 + f[k+1];
k += 2;