From: pschwan Date: Thu, 20 Feb 2003 22:16:51 +0000 (+0000) Subject: fix uninitialized variable warning X-Git-Tag: v1_7_110~2^11~178 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b75dac352548e81662d1c9d3fab5e3771c9a9649;p=fs%2Flustre-release.git fix uninitialized variable warning --- diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 845afd7..b28ae50 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -134,6 +134,7 @@ void reconstruct_open(struct mds_update_record *rec, struct ptlrpc_request *req) if ((obd->obd_flags & OBD_RECOVERING) == 0) { struct list_head *t; + mfd = NULL; list_for_each(t, &med->med_open_head) { mfd = list_entry(t, struct mds_file_data, mfd_list); if (mfd->mfd_xid == req->rq_xid)