From ed20184713a0fe44bd8f21cce23c2c69f9603aaa 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 383e3d5ac586..fea8cc5c5c83 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 @@ -4790,7 +4790,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[] = {