diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-16 13:46:30 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-16 13:46:30 +0800 |
commit | 54d8788cfca8c5a9407e8330f344ff628d3e5ab1 (patch) | |
tree | 917ef9f77afba29772a98577ad6310af204eb115 /mbbsd | |
parent | e05bdcb86de35af031d6c5e0e3b35619b7ad42db (diff) | |
download | pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar.gz pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar.bz2 pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar.lz pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar.xz pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.tar.zst pttbbs-54d8788cfca8c5a9407e8330f344ff628d3e5ab1.zip |
push_bottom bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1772 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/cache.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c index 16eff6d4..14d5d0d2 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -656,14 +656,13 @@ setbottomtotal(int bid) boardheader_t *bh = getbcache(bid); char genbuf[256]; int n; + + if(!bh->brdname[0]) return; setbfile(genbuf, bh->brdname, ".DIR.bottom"); n = get_num_records(genbuf, sizeof(fileheader_t)); if(n>5) { - char log[512]; // temp to debug for a while unlink(genbuf); - sprintf(log, "%d %s bottom:%d num:%d\n", bid, bh->brdname, SHM->n_bottom[bid-1], n ); - log_file("push_bottom.fix", genbuf, 1); SHM->n_bottom[bid-1]=0; } else |