Re: a problem in index_boot

From: George (greerga@CIRCLEMUD.ORG)
Date: 02/17/98


On Tue, 17 Feb 1998, Angus Mezick wrote:

>     the file ptr *index never seems to be closed.  Am i right about this?
>     Should it be closed... this seems a bit odd...

Doesn't seem to be.

diff -u stk/db.c indexclose/db.c
--- stk/db.c    Mon Dec 29 18:05:07 1997
+++ indexclose/db.c     Tue Feb 17 18:02:05 1998
@@ -565,7 +565,7 @@
     qsort(help_table, top_of_helpt, sizeof(struct help_index_element), hsort);
     top_of_helpt--;
   }
-
+  fclose(index);
 }

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST