]> sigrok.org Git - libsigrok.git/commitdiff
input/trace32_ad: Fix pod_data uninitialised warning
authorAndreas Sandberg <redacted>
Mon, 24 Feb 2020 23:03:25 +0000 (23:03 +0000)
committerUwe Hermann <redacted>
Sat, 4 Apr 2020 20:25:03 +0000 (22:25 +0200)
Signed-off-by: Andreas Sandberg <redacted>
src/input/trace32_ad.c

index 8ddb28848c49452921a37db81b06034c1a6e9a68..c55568edd1b6c486ef9e2fa716d6b8ab521c0540 100644 (file)
@@ -550,6 +550,7 @@ static void process_record_pi(struct sr_input *in, gsize start)
                        pod_data |= (RL16(buf->str + start + 0x29) & 32) << 11;
                        break;
                default:
+                       pod_data = 0;
                        sr_err("Don't know how to obtain data for pod %d.", pod);
                }