summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index b53883617..23379ecff 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -5605,7 +5605,7 @@ glusterfs_fsync (glusterfs_file_t *fd)
GF_VALIDATE_OR_GOTO (LIBGF_XL_NAME, fd, out);
fdctx = libgf_get_fd_ctx ((fd_t *)fd);
- if (!fd) {
+ if (!fdctx) {
gf_log (LIBGF_XL_NAME, GF_LOG_ERROR, "No fd context present");
errno = EBADF;
goto out;