From 5f2711266522ec393b38fd49659e0a2b022fa05c Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 8 Apr 2006 14:20:21 +0000 Subject: 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 --- mbbsd/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd/board.c') 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 -- cgit v1.2.3