From 54d8788cfca8c5a9407e8330f344ff628d3e5ab1 Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 16 Apr 2004 05:46:30 +0000 Subject: push_bottom bug git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1772 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cache.c | 5 ++--- 1 file 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 -- cgit v1.2.3