alibaba / AliOS-Things

面向IoT领域的、高可伸缩的物联网操作系统,可去官网了解更多信息https://www.aliyun.com/product/aliosthings
Apache License 2.0
4.58k stars 1.14k forks source link

[HUST CSE] fix: Variable not initialized #1977

Open Shelton-Z opened 1 year ago

Shelton-Z commented 1 year ago

拉取/合并请求描述:(PR description)

为什么提交这份PR (why to submit this PR)

部分变量未赋初值(三处)

存在问题的文件:

  1. components/amp_adapter/platform/linux/peripheral/aos_hal_lcd.c
  2. hardware/chip/rtl872xd/sdk/component/common/mbed/targets/hal/rtl8721d/i2c_api.c

你的解决方案是什么 (what is your solution)

将未赋初值的变量直接赋值为0

image-20230415142154549

在什么测试环境下测试通过 (what is the test environment)

VSCode

当前拉取/合并请求的状态 Intent for your PR

必须选择一项 Choose one (Mandatory):

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.