X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/5ba02c41963a4c4077a873a3c686a61cb84d56b7..1d268f8b7df33d0985b63f7f99b9e3ed597a9982:/keydb_db3.c?ds=sidebyside diff --git a/keydb_db3.c b/keydb_db3.c index 247cbab..e25b94e 100644 --- a/keydb_db3.c +++ b/keydb_db3.c @@ -5,7 +5,7 @@ * * Copyright 2002 Project Purple * - * $Id: keydb_db3.c,v 1.24 2004/03/28 21:27:03 noodles Exp $ + * $Id: keydb_db3.c,v 1.25 2004/05/26 17:46:21 noodles Exp $ */ #include @@ -201,7 +201,7 @@ void initdb(bool readonly) snprintf(buf, 1023, "keydb.%d.db", i); flags = DB_CREATE; if (readonly) { - flags |= DB_RDONLY; + flags = DB_RDONLY; } ret = dbconns[i]->open(dbconns[i], buf, NULL,