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