diff options
Diffstat (limited to 'mbbsd/read.c')
-rw-r--r-- | mbbsd/read.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c index d353b12a..1feb8fc4 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -1,7 +1,7 @@ /* $Id$ */ #include "bbs.h" -static int headers_size; +static int headers_size = 0; static fileheader_t *headers = NULL; static int last_line; // PTT: last_line 游標可指的最後一個 @@ -10,7 +10,7 @@ static int last_line; // PTT: last_line 游標可指的最後一個 /* ----------------------------------------------------- */ /* Tag List 標籤 */ /* ----------------------------------------------------- */ -static TagItem *TagList; /* ascending list */ +static TagItem *TagList = NULL; /* ascending list */ /** * @param locus @@ -19,7 +19,7 @@ static TagItem *TagList; /* ascending list */ void UnTagger(int locus) { - if (locus > TagNum) + if (locus > TagNum || TagNum <= 0) return; TagNum--; |