From 2316e62c612f42ea80f309b1a1c03103fc002707 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 22 Aug 2016 20:37:23 +0200 Subject: Fix warning about uninitialised ecc in FIG0/2 --- fig0_2.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3