summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/call-stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/call-stub.c b/libglusterfs/src/call-stub.c
index 439fd5711..63fe5be55 100644
--- a/libglusterfs/src/call-stub.c
+++ b/libglusterfs/src/call-stub.c
@@ -1261,7 +1261,7 @@ fop_opendir_stub (call_frame_t *frame,
stub->args.opendir.fn = fn;
loc_copy (&stub->args.opendir.loc, loc);
- if (stub->args.opendir.fd)
+ if (fd)
stub->args.opendir.fd = fd_ref (fd);
out:
return stub;