diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-05 16:12:42 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-05 16:12:42 +0800 |
commit | c9259df392d39db8b0a03ce648754837bc316905 (patch) | |
tree | dfe550fd42dd16b42ffe35450211dbef7e40e594 /mbbsd | |
parent | b1bff943406c687957502983b94b257653451485 (diff) | |
download | pttbbs-scw.brc2.tar pttbbs-scw.brc2.tar.gz pttbbs-scw.brc2.tar.bz2 pttbbs-scw.brc2.tar.lz pttbbs-scw.brc2.tar.xz pttbbs-scw.brc2.tar.zst pttbbs-scw.brc2.zip |
The bug fixed in trunk.scw.brc2
git-svn-id: http://opensvn.csie.org/pttbbs/branches/scw.brc2@1696 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/board.c | 3 | ||||
-rw-r--r-- | mbbsd/brc.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 800411fc..446f1103 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -50,7 +50,8 @@ void imovefav(int old) void init_brdbuf() { - brc_initialize(); + if (brc_initialize()) + return; brc_initial_board(DEFAULT_BOARD); set_board(); } diff --git a/mbbsd/brc.c b/mbbsd/brc.c index 9237c24f..cb5432cc 100644 --- a/mbbsd/brc.c +++ b/mbbsd/brc.c @@ -293,14 +293,15 @@ brc_finalize(){ } } -void +int brc_initialize(){ static char done = 0; if (done) - return; + return 1; done = 1; brc_expire_time = login_start_time - 365 * 86400; read_brc_buf(); + return 0; } int |