From bcf9cb789440086cedca3848803bf8dbd64e7de0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 1 Sep 2011 10:45:22 -0700 Subject: [PATCH] cfuse: initialize Fh to NULL Avoid debugging confusion. Signed-off-by: Sage Weil --- src/client/fuse_ll.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index 9ea7e16d59cb0..aeaceec3f107a 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -317,7 +317,7 @@ static void ceph_ll_link(fuse_req_t req, fuse_ino_t ino, fuse_ino_t newparent, static void ceph_ll_open(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi) { const struct fuse_ctx *ctx = fuse_req_ctx(req); - Fh *fh; + Fh *fh = NULL; int r = client->ll_open(fino_vino(ino), fi->flags, &fh, ctx->uid, ctx->gid); if (r == 0) { fi->fh = (long)fh; @@ -443,7 +443,7 @@ static void ceph_ll_create(fuse_req_t req, fuse_ino_t parent, const char *name, const struct fuse_ctx *ctx = fuse_req_ctx(req); struct fuse_entry_param fe; memset(&fe, 0, sizeof(fe)); - Fh *fh; + Fh *fh = NULL; int r = client->ll_create(fino_vino(parent), name, mode, fi->flags, &fe.attr, &fh, ctx->uid, ctx->gid); if (r == 0) { fi->fh = (long)fh; -- 2.39.5