projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f09bb22
)
Fix crash copying game list when there is none
author
H.G. Muller
<h.g.muller@hccnet.nl>
Wed, 13 Apr 2011 09:41:54 +0000 (11:41 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Thu, 14 Apr 2011 19:30:18 +0000 (21:30 +0200)
xgamelist.c
patch
|
blob
|
history
diff --git
a/xgamelist.c
b/xgamelist.c
index
d2cf8bd
..
8839e90
100644
(file)
--- a/
xgamelist.c
+++ b/
xgamelist.c
@@
-623,7
+623,7
@@
int SaveGameListAsText(FILE *f)
ListGame * lg = (ListGame *) gameList.head;
\r
int nItem;
\r
\r
- if( ((ListGame *) gameList.tailPred)->number <= 0 ) {
\r
+ if( !glc || ((ListGame *) gameList.tailPred)->number <= 0 ) {
\r
DisplayError("Game list not loaded or empty", 0);
\r
return False;
\r
}
\r