diff options
| author | bernard.xiong <[email protected]> | 2011-08-04 03:46:32 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2011-08-04 03:46:32 +0000 |
| commit | 1992d1750155786783c4ab83cada0104826519d4 (patch) | |
| tree | 7c07ed1eec4bf68b7dc79f18efd41df16550fc1f /components | |
| parent | b49db5f72a3bfb67f8b4c6798700d416d3e04e56 (diff) | |
fix compiler warning.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1661 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/src/dfs.c | 2 | ||||
| -rw-r--r-- | components/dfs/src/dfs_file.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 18eb41bf10..eaf8650310 100644 --- a/components/dfs/src/dfs.c +++ b/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;
diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index fc63920d56..58d57ea3da 100644 --- a/components/dfs/src/dfs_file.c +++ b/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 )
|
