summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-04-08 22:20:21 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-04-08 22:20:21 +0800
commit5f2711266522ec393b38fd49659e0a2b022fa05c (patch)
treeb1279c3e16f964964e5595dca60fa91530e22ad5 /mbbsd/board.c
parent51b547ab4cc19b6c9bd74a519a745bd693c8e390 (diff)
downloadpttbbs-5f2711266522ec393b38fd49659e0a2b022fa05c.tar
pttbbs-5f2711266522ec393b38fd49659e0a2b022fa05c.tar.gz
pttbbs-5f2711266522ec393b38fd49659e0a2b022fa05c.tar.bz2
pttbbs-5f2711266522ec393b38fd49659e0a2b022fa05c.tar.lz
pttbbs-5f2711266522ec393b38fd49659e0a2b022fa05c.tar.xz
pttbbs-5f2711266522ec393b38fd49659e0a2b022fa05c.tar.zst
pttbbs-5f2711266522ec393b38fd49659e0a2b022fa05c.zip
fix bug, board class disappear because incorrect bsorted[] made by race condition.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3325 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 95db3b75..f7451925 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -344,7 +344,7 @@ load_boards(char *key)
int childcount;
int bid;
- if (bptr->firstchild[type] == 0 )
+ if (bptr->firstchild[type] == 0 || bptr->childcount==0)
load_uidofgid(class_bid, type);
childcount = bptr->childcount; // Ptt: child count after load_uidofgid