From c14e76cb69a1ca760d52917df394d4ea696c165c Mon Sep 17 00:00:00 2001 From: "pr.jung" Date: Tue, 13 Mar 2018 11:24:28 +0900 Subject: [PATCH] block: Remove memset Change-Id: I758bed8d6bbd08425135ea2461ffe4717925f01b Signed-off-by: pr.jung --- src/block/block.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/block/block.c b/src/block/block.c index 7a11e3d..c30008d 100644 --- a/src/block/block.c +++ b/src/block/block.c @@ -896,7 +896,6 @@ void mmc_make_default_path(const char *mount_path) char mmc_path[FILE_NAME_LEN_MAX + 1] = {0, }; for (i = 0; i < DIR_NUM; ++i) { - memset(mmc_path, 0, sizeof(mmc_path)); snprintf(mmc_path, sizeof(mmc_path), "%s/%s", mount_path, mmc_default_path[i]); if (!g_file_test(mmc_path, G_FILE_TEST_IS_DIR)) { _D("%s path did not exist", mmc_path); -- 2.7.4