summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-09-01 10:45:22 -0700
committerSage Weil <sage@newdream.net>2011-09-01 11:23:49 -0700
commitbcf9cb789440086cedca3848803bf8dbd64e7de0 (patch)
tree44b18fb1696f944dc0428a653c98f9d9c98ecc29
parent886440d3c38189761a8655593f3b32869ff7c60c (diff)
downloadceph-bcf9cb789440086cedca3848803bf8dbd64e7de0.tar.gz
cfuse: initialize Fh to NULL
Avoid debugging confusion. Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r--src/client/fuse_ll.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc
index 9ea7e16d59c..aeaceec3f10 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;