From c5d22faeff57b60c4d85b7e1df3355ded8efb7b8 Mon Sep 17 00:00:00 2001 From: Luan Yuan Date: Wed, 16 Jan 2019 21:44:38 +0800 Subject: [PATCH] hdmitx: fixed logo flash error [1/1] PD#SWPL-4194 Problem: array need to initial. Solution: fixed it. Verify: verify by ampere Change-Id: Ia72eb1afa54f092bbbb7265694ecec314691b14e Signed-off-by: Luan Yuan --- drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c index 022d573a0a3a..2f4a9dcfa6a1 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c @@ -4744,7 +4744,7 @@ static char *next_token_ex(char *separator, char *buf, unsigned int size, /* check the colorattribute from uboot */ static void check_hdmiuboot_attr(char *token) { - char attr[16]; + char attr[16] = {0}; const char * const cs[] = { "444", "422", "rgb", "420", NULL}; const char * const cd[] = {