summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-open.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/afr/src/afr-open.c')
-rw-r--r--xlators/cluster/afr/src/afr-open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-open.c b/xlators/cluster/afr/src/afr-open.c
index 44ba22ee77a..074a9d32c66 100644
--- a/xlators/cluster/afr/src/afr-open.c
+++ b/xlators/cluster/afr/src/afr-open.c
@@ -372,7 +372,7 @@ afr_prepare_loc (call_frame_t *frame, fd_t *fd)
local = frame->local;
ret = inode_path (fd->inode, NULL, (char **)&path);
- if (ret == -1)
+ if (ret <= 0)
return -1;
if (local->loc.path) {