summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprife <[email protected]>2014-01-11 14:57:02 +0800
committerprife <[email protected]>2014-01-11 14:57:02 +0800
commitc07a78ae005b9e41801f1d7f8e90a37d4d7f4449 (patch)
tree4a58ffa941759a9b45c65ca5f5501a64a167b910
parent05e9233de62a32fb60a42cb190adff4c2bf941c1 (diff)
nfs: fix bug
I have to mention that this bug is introduced by myself, in the last commit <fd07f30f511335f506ae6557e300093d4dde421e> to dfs_nfs.c
-rw-r--r--components/dfs/filesystems/nfs/dfs_nfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/filesystems/nfs/dfs_nfs.c b/components/dfs/filesystems/nfs/dfs_nfs.c
index 3709cc33fe..0f40fa4292 100644
--- a/components/dfs/filesystems/nfs/dfs_nfs.c
+++ b/components/dfs/filesystems/nfs/dfs_nfs.c
@@ -233,7 +233,7 @@ static nfs_fh3 *get_dir_handle(struct nfs_filesystem *nfs, const char *name)
copy_handle(handle, &nfs->current_handle);
}
- while ((file = strtok_r(RT_NULL, "/", &path)) != RT_NULL && path != RT_NULL)
+ while ((file = strtok_r(RT_NULL, "/", &path)) != RT_NULL && path[0] != 0)
{
LOOKUP3args args;
LOOKUP3res res;