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[] = {