Whamcloud - gitweb
- initialize namesize var to fix gcc's warning
authoralex <alex>
Wed, 17 Aug 2005 15:38:31 +0000 (15:38 +0000)
committeralex <alex>
Wed, 17 Aug 2005 15:38:31 +0000 (15:38 +0000)
lustre/mds/handler.c

index 2f8c513..b72fd1d 100644 (file)
@@ -1492,7 +1492,7 @@ static int mds_getattr_lock(struct ptlrpc_request *req, int offset,
         struct dentry *dparent = NULL, *dchild = NULL;
         struct lvfs_ucred uc = {NULL, NULL,};
         struct lustre_handle parent_lockh[2] = {{0}, {0}};
-        unsigned int namesize;
+        unsigned int namesize = 0;
         int rc = 0, cleanup_phase = 0, resent_req = 0, update_mode, reply_offset;
         char *name = NULL;
         ENTRY;