summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mount/fuse/src/fuse-helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c
index 7f708e0256e..96fc8a86400 100644
--- a/xlators/mount/fuse/src/fuse-helpers.c
+++ b/xlators/mount/fuse/src/fuse-helpers.c
@@ -221,7 +221,7 @@ fuse_loc_fill (loc_t *loc, fuse_state_t *state, ino_t ino,
if (ret <= 0) {
gf_log ("glusterfs-fuse", GF_LOG_DEBUG,
"inode_path failed for %"PRId64"/%s",
- parent->ino, name);
+ (parent)?parent->ino:0, name);
goto fail;
}
loc->path = path;
@@ -242,7 +242,7 @@ fuse_loc_fill (loc_t *loc, fuse_state_t *state, ino_t ino,
if (ret <= 0) {
gf_log ("glusterfs-fuse", GF_LOG_DEBUG,
"inode_path failed for %"PRId64,
- inode->ino);
+ (inode)?inode->ino:0);
goto fail;
}
loc->path = path;