Whamcloud - gitweb
- Quell (spurious, but I don't blame gcc for getting it wrong) "uninitialized
authorshaver <shaver>
Mon, 24 Feb 2003 19:35:18 +0000 (19:35 +0000)
committershaver <shaver>
Mon, 24 Feb 2003 19:35:18 +0000 (19:35 +0000)
  use of dchild" warning.

- Reconstruct rename replies (easy, until I go back and make them all work in
  the failed-over case).

lustre/mds/mds_open.c

index 8e15586..50ca592 100644 (file)
@@ -201,7 +201,7 @@ int mds_open(struct mds_update_record *rec, int offset,
         struct ldlm_reply *rep = lustre_msg_buf(req->rq_repmsg, 0);
         struct file *file;
         struct mds_body *body = lustre_msg_buf(req->rq_repmsg, 1);
-        struct dentry *dchild, *parent;
+        struct dentry *dchild = NULL, *parent;
         struct mds_export_data *med;
         struct mds_file_data *mfd = NULL;
         struct ldlm_res_id child_res_id = { .name = {0} };