summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-06-26 12:10:05 +0800
committerGitHub <[email protected]>2018-06-26 12:10:05 +0800
commit464e1615b93cee121bf17ff26cafae703cca7f68 (patch)
tree13ba1db414a8dd381b63226482fbba49cd6e6d32 /components
parent7a9cdcd5c7991b9350f013d727eac9fd08c1104d (diff)
parentf850a2dd339f2a4dd83ec5223dba8daa9279d42b (diff)
Merge pull request #1572 from enkiller/mmc
[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);