diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2009-09-09 00:46:31 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-09 06:39:18 -0700 |
commit | 2f44214fc6fd07c434ff6ca48f2c61d2ad9c3939 (patch) | |
tree | 5fc218e2fb3637c7b69b52041959fe027e4879cb /libglusterfsclient | |
parent | 3c029faaf40b53ef3be94d9ad9a927e9a5b4d72c (diff) |
libglusterfsclient: Fix incorrect NULL check for fd
We should check fdctx instead.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 253 (Global bug for libglusterfsclient NULL checks and CALLOC handling fixes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=253
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index e739a800c14..fd42926a207 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -5611,7 +5611,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; |