projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix crash on loading garbage game file
[xboard.git]
/
gamelist.c
diff --git
a/gamelist.c
b/gamelist.c
index
2626839
..
a36af7a
100644
(file)
--- 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);
}