소스 검색

fix compiler warning.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1661 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong 13 년 전
부모
커밋
1992d17501
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      components/dfs/src/dfs.c
  2. 1 0
      components/dfs/src/dfs_file.c

+ 2 - 0
components/dfs/src/dfs.c

@@ -297,6 +297,8 @@ char* dfs_normalize_path(const char* directory, const char* filename)
 
 	src = fullpath;
 	dst = fullpath;
+	
+	dst0 = dst;
 	while (1)
 	{
 		char c = *src;

+ 1 - 0
components/dfs/src/dfs_file.c

@@ -385,6 +385,7 @@ int dfs_file_rename(const char* oldpath, const char* newpath)
 	char *oldfullpath, *newfullpath;
 
 	result = DFS_STATUS_OK;
+	newfullpath = RT_NULL;
 
 	oldfullpath = dfs_normalize_path(RT_NULL, oldpath);
 	if ( oldfullpath == RT_NULL )