From: Andreas Sandberg Date: Mon, 24 Feb 2020 23:03:25 +0000 (+0000) Subject: input/trace32_ad: Fix pod_data uninitialised warning X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=35037b1d8b6019c3605f6b579022ce35aefdb759;p=libsigrok.git input/trace32_ad: Fix pod_data uninitialised warning Signed-off-by: Andreas Sandberg --- diff --git a/src/input/trace32_ad.c b/src/input/trace32_ad.c index 8ddb2884..c55568ed 100644 --- a/src/input/trace32_ad.c +++ b/src/input/trace32_ad.c @@ -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); }