diff options
Diffstat (limited to 'util/boardlist.c')
-rw-r--r-- | util/boardlist.c | 3 |
1 files changed, 1 insertions, 2 deletions
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]) |