summaryrefslogtreecommitdiff
path: root/tdb/common/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'tdb/common/io.c')
-rw-r--r--tdb/common/io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tdb/common/io.c b/tdb/common/io.c
index 172ab69d..661f7614 100644
--- a/tdb/common/io.c
+++ b/tdb/common/io.c
@@ -189,7 +189,9 @@ int tdb_munmap(struct tdb_context *tdb)
#ifdef HAVE_MMAP
if (tdb->map_ptr) {
- int ret = munmap(tdb->map_ptr, tdb->map_size);
+ int ret;
+
+ ret = munmap(tdb->map_ptr, tdb->map_size);
if (ret != 0)
return ret;
}