diff options
Diffstat (limited to 'libglusterfs/src/fd.c')
-rw-r--r-- | libglusterfs/src/fd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/fd.c b/libglusterfs/src/fd.c index b24d0089d21..ee529f35645 100644 --- a/libglusterfs/src/fd.c +++ b/libglusterfs/src/fd.c @@ -461,12 +461,13 @@ fd_unref (fd_t *fd) fd_t * fd_bind (fd_t *fd) { - inode_t *inode = fd->inode; + inode_t *inode = NULL; if (!fd) { gf_log ("fd.c", GF_LOG_ERROR, "fd is NULL"); return NULL; } + inode = fd->inode; LOCK (&inode->lock); { |