summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authortangyuxin <[email protected]>2018-06-26 11:09:13 +0800
committertangyuxin <[email protected]>2018-06-26 11:09:13 +0800
commitf850a2dd339f2a4dd83ec5223dba8daa9279d42b (patch)
treefb3f595df49b2f5776430db75cc5af77329fb62a /components
parent6ecdfca2cde50e2974bdb5cda2995a64407c8818 (diff)
[components][drivers]sdio 给局部指针变量赋初值,修复潜在问题
Diffstat (limited to 'components')
-rw-r--r--components/drivers/sdio/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/sdio/mmc.c b/components/drivers/sdio/mmc.c
index e537c7dd3b..138d9565a1 100644
--- a/components/drivers/sdio/mmc.c
+++ b/components/drivers/sdio/mmc.c
@@ -412,12 +412,12 @@ static rt_err_t mmc_set_card_addr(struct rt_mmcsd_host *host, rt_uint32_t rca)
static rt_int32_t mmcsd_mmc_init_card(struct rt_mmcsd_host *host,
rt_uint32_t ocr)
{
- struct rt_mmcsd_card *card;
rt_int32_t err;
rt_uint32_t resp[4];
rt_uint32_t rocr;
rt_uint32_t max_data_rate;
rt_uint8_t *ext_csd = RT_NULL;
+ struct rt_mmcsd_card *card = RT_NULL;
mmcsd_go_idle(host);