X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gamelist.c;h=a36af7ad0db9cd883556f872e0597838747142fa;hb=09d925e8732793829e2a2a2abe582a46343e3fd2;hp=d8d0a46b211f1f3336e06b27b6c3f76c38cd7f8f;hpb=0345db41a6f6e2fb27dbcc1b4e0cfbf88066f098;p=xboard.git diff --git a/gamelist.c b/gamelist.c index d8d0a46..a36af7a 100644 --- a/gamelist.c +++ b/gamelist.c @@ -304,6 +304,7 @@ int GameListBuild(f) case BlackWins: case GameIsDrawn: case GameUnfinished: + if(!currentListGame) break; if (currentListGame->gameInfo.resultDetails != NULL) { free(currentListGame->gameInfo.resultDetails); } @@ -334,9 +335,9 @@ int GameListBuild(f) } } + DisplayTitle("WinBoard"); rewind(f); yyskipmoves = FALSE; - DisplayTitle("WinBoard"); return 0; }