summaryrefslogtreecommitdiff
path: root/components/dfs/filesystems
diff options
context:
space:
mode:
authorbernard <[email protected]>2014-04-02 14:02:36 +0800
committerbernard <[email protected]>2014-04-02 14:02:36 +0800
commit6469a5a3d1826bb97a93b4499f4828c2416678cd (patch)
tree0f2e2f782c1e27f0eb4c2c11d3a4a5d4d8e8d8e6 /components/dfs/filesystems
parent40b7eba4461d1cfb21496e92caae1231321f94be (diff)
[DFS] fix compiling warning.
Diffstat (limited to 'components/dfs/filesystems')
-rw-r--r--components/dfs/filesystems/nfs/rpc/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/filesystems/nfs/rpc/pmap.c b/components/dfs/filesystems/nfs/rpc/pmap.c
index fcf8e9d948..4f2cf50c1e 100644
--- a/components/dfs/filesystems/nfs/rpc/pmap.c
+++ b/components/dfs/filesystems/nfs/rpc/pmap.c
@@ -24,7 +24,7 @@ unsigned short pmap_getport(struct sockaddr_in *address, unsigned long program,
{
unsigned short port = 0;
int socket = -1;
- register CLIENT *client;
+ register CLIENT *client = RT_NULL;
struct pmap parms;
address->sin_port = htons((unsigned short)PMAPPORT);