summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPin-chih Lin <johnylin@google.com>2020-11-26 18:22:49 +0800
committerCommit Bot <commit-bot@chromium.org>2020-12-07 13:01:03 +0000
commitb653830173edcab16e1c38c26f91c20562ee5eb9 (patch)
tree49e2ac29131a42a6f4c6fad21261a5688194e850
parent196b2f2cc7909fab0bce9ebc3f701cf891863c1b (diff)
downloadadhd-b653830173edcab16e1c38c26f91c20562ee5eb9.tar.gz
CRAS: plc_test - fix make error on make check
While building unittest by "make check", cras_plc_test shows one make error of variable may be un-initialized. This CL provides the fix. BUG=none TEST=(outside chroot) make check -j8 Change-Id: Iacc4b51b299009173b7dff5835eb4af9b7e158ab Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/2561969 Reviewed-by: En-Shuo Hsu <enshuo@chromium.org> Reviewed-by: Pin-chih Lin <johnylin@chromium.org> Tested-by: Pin-chih Lin <johnylin@chromium.org> Auto-Submit: Pin-chih Lin <johnylin@chromium.org> Commit-Queue: Pin-chih Lin <johnylin@chromium.org>
-rw-r--r--cras/src/plc/cras_plc_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cras/src/plc/cras_plc_test.c b/cras/src/plc/cras_plc_test.c
index 3d92b96a..4b7a6a77 100644
--- a/cras/src/plc/cras_plc_test.c
+++ b/cras/src/plc/cras_plc_test.c
@@ -54,7 +54,7 @@ bool *generate_pl_seq(int input_file_size, float pl_percent)
bool *parse_pl_hex(int input_file_size, const char *pl_hex)
{
char tmp[3];
- uint8_t val;
+ uint8_t val = 0;
int i, pl_hex_len, seq_len;
bool *seq;