X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/838b6820d59b49881d1cd097aff7e96049a60f9e..6938a097fb6c1cda197b18f868808c860e832bb9:/keydb_db3.c?ds=sidebyside diff --git a/keydb_db3.c b/keydb_db3.c index 309a297..b3441b7 100644 --- a/keydb_db3.c +++ b/keydb_db3.c @@ -5,7 +5,7 @@ * * Copyright 2002 Project Purple * - * $Id: keydb_db3.c,v 1.21 2003/10/03 23:02:04 noodles Exp $ + * $Id: keydb_db3.c,v 1.22 2003/10/10 16:57:27 noodles Exp $ */ #include @@ -139,6 +139,15 @@ void initdb(void) } else { logthing(LOGTHING_ERROR, "Couldn't open num_keydb: %s", strerror(errno)); + numdb = fopen(buf, "w"); + if (numdb != NULL) { + fprintf(numdb, "%d", numdbs); + fclose(numdb); + } else { + logthing(LOGTHING_ERROR, + "Couldn't write num_keydb: %s", + strerror(errno)); + } } dbconns = malloc(sizeof (DB *) * numdbs);