diff options
-rw-r--r-- | mbbsd/board.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 5903401b..bb23d3ba 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -315,6 +315,12 @@ load_boards(char *key) #if HOTBOARDCACHE else if(IN_HOTBOARD()){ nbrdsize = SHM->nHOTs; + if(nbrdsize == 0) { + nbrdsize = 1; + nbrd = (boardstat_t *)malloc(sizeof(boardstat_t) * 1); + addnewbrdstat(0, 0); // dummy + return; + } assert(0<nbrdsize); nbrd = (boardstat_t *)malloc(sizeof(boardstat_t) * nbrdsize); for( i = 0 ; i < nbrdsize; ++i ) { |