summaryrefslogtreecommitdiff
path: root/src/os_posix
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2015-02-09 10:01:25 -0500
committerSusan LoVerso <sue@wiredtiger.com>2015-02-09 10:01:25 -0500
commit9871b1863a57fa3e35729d5e7a91faa319beba96 (patch)
treecb9dad1f73f5239108e9b881dc17410e939a0892 /src/os_posix
parent21caa51b27ef16d8a19b125db021595ff83ced9d (diff)
downloadmongo-9871b1863a57fa3e35729d5e7a91faa319beba96.tar.gz
Coverity 1268396: Null pointer dereferences (REVERSE_INULL)
Diffstat (limited to 'src/os_posix')
-rw-r--r--src/os_posix/os_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_posix/os_open.c b/src/os_posix/os_open.c
index 5f6f98d6ecc..8e2175ee77d 100644
--- a/src/os_posix/os_open.c
+++ b/src/os_posix/os_open.c
@@ -214,7 +214,6 @@ __wt_close(WT_SESSION_IMPL *session, WT_FH *fh)
uint64_t bucket;
conn = S2C(session);
- bucket = fh->name_hash % WT_HASH_ARRAY_SIZE;
__wt_spin_lock(session, &conn->fh_lock);
if (fh == NULL || fh->ref == 0 || --fh->ref > 0) {
@@ -223,6 +222,7 @@ __wt_close(WT_SESSION_IMPL *session, WT_FH *fh)
}
/* Remove from the list. */
+ bucket = fh->name_hash % WT_HASH_ARRAY_SIZE;
WT_CONN_FILE_REMOVE(conn, fh, bucket);
WT_STAT_FAST_CONN_DECR(session, file_open);