diff options
-rw-r--r-- | mbbsd/board.c | 3 | ||||
-rw-r--r-- | util/boardlist.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index f18c6d50..37bf9700 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -131,8 +131,7 @@ load_uidofgid(const int gid, const int type) int n, childcount = 0; currbptr = &bcache[gid - 1]; for (n = 0; n < numboards; ++n) { - bptr = SHM->bsorted[type][n]; - if (bptr->brdname[0] == '\0') + if( !(bptr = SHM->bsorted[type][n]) || bptr->brdname[0] == '\0' ) continue; if (bptr->gid == gid) { if (currbptr == &bcache[gid - 1]) diff --git a/util/boardlist.c b/util/boardlist.c index a37de82f..606a0192 100644 --- a/util/boardlist.c +++ b/util/boardlist.c @@ -9,8 +9,7 @@ load_uidofgid(const int gid, const int type) int n, childcount = 0; currbptr = &bcache[gid - 1]; for (n = 0; n < numboards; ++n) { - bptr = SHM->bsorted[type][n]; - if (bptr->brdname[0] == '\0') + if( !(bptr = SHM->bsorted[type][n]) || bptr->brdname[0] == '\0' ) continue; if (bptr->gid == gid) { if (currbptr == &bcache[gid - 1]) |