fixed typo
authorAndrew Tridgell <tridge@samba.org>
Mon, 1 May 2000 00:48:41 +0000 (00:48 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 1 May 2000 00:48:41 +0000 (00:48 +0000)
source/tdb/tdb.c

index 998630cb84d2c2f4d2478cbfc1b1b82a0a3000a2..11bff6ce2ea4c4b3b94efc16bd3b30b16791e4cb 100644 (file)
@@ -1220,7 +1220,7 @@ TDB_CONTEXT *tdb_open(char *name, int hash_size, int tdb_flags,
         }
 
 #if HAVE_MMAP
-       if (!(tdb->flags & TDB_NOMMAP)) {
+       if (!(tdb.flags & TDB_NOMMAP)) {
                tdb.map_ptr = (void *)mmap(NULL, st.st_size, 
                                           tdb.read_only? PROT_READ : PROT_READ|PROT_WRITE,
                                           MAP_SHARED | MAP_FILE, tdb.fd, 0);